When using Event with jsCalendar, I can't set up time with event setted at '24' notation.
All created events are moved to '12' time notation (in am) even if the time selected was >12. If event notation is set to '12' everything works fine.

Any suggestions?

CommentFileSizeAuthor
#9 fix_time_notation_on_event_submit_0.patch834 bytesMoxide

Comments

chrissearle’s picture

Seeing the same - just wondering if you got any further with this?

elroyguess’s picture

I had the same error, too.

After changing line 1511 in event.module in function event_validate_form_date from

$node->{$prefix . 'hour'} = variable_get('event_ampm', '0') ? date('H', $timestamp) : date('g', $timestamp);

to

$node->{$prefix . 'hour'} = variable_get('event_ampm', '0') ? date('g', $timestamp) : date('H', $timestamp);

it worked. The authors mixed up the parameters 'g' for 12-hour-format and 'H' for 24-hour-format. ;)

chrissearle’s picture

Just checked this with event.module that I have (22/05/06). Works fine.

I've just noticed that when I edit a post that had start 13:00 end 00:00 (following day) both the minutes ended up as :10 in the edit - but - I'll have to go check see if I have the latest module. Still - works well when adding content now :)

chrissearle’s picture

Yep - that was it. Latest version (as of 19th sep) with the change of g/H and its working well.

frjo’s picture

Priority: Normal » Critical

I had the same problem and the fix in #2 is working for me as well. I'm using the 4.7 version as of 2006-10-29.

I'm setting this to critical since the bug make it impossible to post events that take place in the afternoon/evening when using 24h notation.

killes@www.drop.org’s picture

can somebody roll a patch from this?

mcurry’s picture

Adding this to "my issues".

Moxide’s picture

Sorry, I hadn't read this post and I made another issue with a patch here: http://drupal.org/node/93402.

Moxide’s picture

Status: Active » Needs review
StatusFileSize
new834 bytes

I closed the duplicate and reroll a patch here.
This patch is against the 4.7-1.x version.

killes@www.drop.org’s picture

Status: Needs review » Fixed

applied

Anonymous’s picture

Status: Fixed » Closed (fixed)
tormi’s picture

Status: Closed (fixed) » Active

Patch http://drupal.org/node/117326#comment-198438 reintroduced this bug.

Tormi

killes@www.drop.org’s picture

Status: Active » Fixed

reverted the other patch

Anonymous’s picture

Status: Fixed » Closed (fixed)