When viewing an event node, I can't seem to find a way to change the formatting of how the Start and End times are displayed. It seems to me that a good solution would be to use the sitewite short, medium, or long date formats, as chosen by the user in the site settings. Some date formats are much easier to read quickly than others.

The way of implementing this could be very simple: just replace the current 'Time notation preference' which only allows switching between 12 and 24 hr time with a field that lets the administrator select the date format they wish to use when displaying event nodes (short, medium, or long) and add a link to the Date settings section of the sitewide settings page along with a note explaining that they can specify what the short, medium, and long date formats look like on this page.

Or, if there is some reason that the 12hr/24hr thing has to stay, just keep it there and also add this new field.

I'd be willing to give a stab at writing a patch to allow this, but wanted to get some feedback. Perhaps there is some reason this has not been done in the past?

Cheers,
Ben

CommentFileSizeAuthor
#1 startendformat.patch3.45 KBbenwei

Comments

benwei’s picture

Assigned: Unassigned » benwei
Status: Active » Needs review
StatusFileSize
new3.45 KB

I humbly submit my first real patch which implements the solution above. I found this behavior useful on my site, and I think others might as well. If this is out of line, please, shoot me down.

Cheers,
Ben

deviantintegral’s picture

I haven't had a chance to test this yet, but is there a reason why this hasn't been followed up on yet? just wanted to make sure that there wasn't some fatal flaw before I implemented this on my site (this appears to do exactly what I need!).

Thanks,
--Andrew

lreid’s picture

It works for me. Thanks!

cpelham’s picture

Does this patch work under Drupal 5 and most recent event.module?

Which lines would I replace with this patch? I'm not yet clear about how to read that info at the top of the patch file...

g76’s picture

we could us the code too. we could use the code for drupal 5.2/ latest 5.x-2.x-dev event w/ jscalendar. we have edited the event module to reflect proper 12 hr am/pm settings for jscalendar, but it is not reflected in the form field display.

deviantintegral’s picture

Status: Needs review » Closed (fixed)

I'm marking this old issue as closed as it hasn't been touched in over two years. It no longer affects me at least, as I'm using Date + CCK for this type of work now.