As discussed at the Drupalcon Chicago sprint, formatting of event dates could really use improvement.

lisarex and I discussed using meetup.com as a potential benchmark. The first attachment is a calendar icon that describes a user's attendance. The second attachment shows the dates on the event page.

We discussed using the first example as model for node teasers and the second for full node views. I've started with the first, but I think it may be a fine choice for both versions. I also wrote a formatter to show the organizer user reference field as a comma separated list. This is shown in the third attachment.

I had an idea for the year of the event, which is to only display the event year if it is different than the current. This is done via CSS (.this-year, .other-year) and is shown in the fourth attachment.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

Looks good. Time zones?

c4rl’s picture

Assigned: lisarex » c4rl
Status: Needs review » Needs work

Good call, I'll make sure timezone data gets added back in.

lisarex’s picture

Thanks C4rl! The calendar version looks good. Very definitely stands out in a sea of text :)

Do we need an end time in the text version? And AM/PM?

c4rl’s picture

Assigned: c4rl » lisarex
Status: Needs work » Needs review
FileSize
76.63 KB

Added timezones, AM/PM, and end time.

I believe locale doesn't support regional date formats in d6, so hopefully this format is universal enough for now.

c4rl’s picture

FileSize
3.04 KB

I realized I never posted the patch :)

basic’s picture

Title: Revise formatting of event dates and organizers in bluecheese » Revise formatting of event dates and organizers
Project: Drupal.org infrastructure » Groups.drupal.org
Version: » 6.x-1.x-dev
Component: groups.drupal.org » User interface
Issue summary: View changes

Moving to the proper queue

lisarex’s picture

Assigned: lisarex » Unassigned