Hi, I love the new ability to have the jquery calendar working with this module, but i'm getting the following error each time i try and create content to unpublish on a certain date
"The 'unpublish on' value does not match the expected format of 12-09-2009 "
my scheduler module settings are in the following format d-M-Y
and my date and time settings use this format also.
All looks good when i pick the date using the drop down calendar, and it's seemingly in the appropriate format, however when i save the content type i get the error.
I'm using Drupal 6.12 and can't work out what could be causing this and what to do and any help would be much appreciated.
Comments
Comment #1
eric-alexander schaefer commentedIs d-M-Y your complete format? You need a time value, otherwise it will not work!
Comment #2
harmonyhalo commentedThanks for your help Eric. Unfortunately it still gives me the same error message if i use a time value.
(I'm on a mac in firefox 3.5.3)
I was hoping not to have to enter a time value since it's for exhibition listings where there will be many nodes entered and the beauty of the jQuery calendar for the end-user is they can just click and select the date without having to touch the keyboard, but it's a lot more work for them to then have to enter in a time manually for each exhibition listing, especially when it's not relevant to the content type (and at least on my computer the time field is a little buggy with it's auto-filling of the time once you select a number)
Comment #3
eric-alexander schaefer commentedI think I found it. The date widgets can be configured to use a certain input format but internally they always use "Y-m-d H:i:s". I made a little change to reflect this behaviour (see attached patch). Please test it with your date format. Check back if you are not familiar with applying patches...
Interesting side note: Scheduler does not support the 'M' format token but the date popup does. I should edit the format description...
Comment #4
harmonyhalo commentedEric, that works perfectly...
Thank you so much - it solves a problem i'd been hoping to get around for a while now!
Comment #5
eric-alexander schaefer commentedCommitted: http://drupal.org/cvs?commit=268608
Comment #6
aimutch commentedIs this also an issue if you manually change the date format in the Scheduler module settings? I changed those manually to make the date/time entry more user friendly but Scheduler doesn't seem to like that change.
Comment #7
eric-alexander schaefer commentedaimutch, please post your format settings.
Comment #8
aimutch commentedn-j-Y G:i
Comment #9
eric-alexander schaefer commentedOh, OK. Thats because neighter n nor j nor G are supported now. I just created #596472: Support more date format characters.
Comment #10
aimutch commentedThanks! I figured it was something like that.