On a client site (running version 6.1.7 of scheduler) whenever a node is submitted with a scheduled publish date having "12" in the hour place, the resulting saved time ends has the incorrect "meridiem". For example, if we enter "02-27-2011 12:49 PM", then the saved time ends up being "02-27-2011 12:49 AM" (note the AM instead of PM). The inverse happens as well. If we entered "02-27-2011 12:49 AM", it would end up saving as "02-27-2011 12:49 PM". This only occurs when the hour place is "12". I briefly looked over the code and didn't see anything that stood out. Has anyone experienced this problem with scheduler module previously? Thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1075382_2.scheduler.Scheduled_publish_time_changes_unexpectedly.patch | 648 bytes | Eric-Alexander Schaefer |
Comments
Comment #1
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedI think I know why it does that. Will be looking into it tonight...
Comment #2
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedI attached a patch which should solve the problem.
Comment #3
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedFix for D6: http://drupalcode.org/project/scheduler.git/commit/8b8e259
Fix for D7: http://drupalcode.org/project/scheduler.git/commit/7d57c9d
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedI will test it tonight to see if it fixes the issue. Thanks.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedThis patch did the trick. Worked for me. Thank you.