On my site js_calendar is adding a space to the end of the date-stamp, e.g. it's filling the form element with "2006-09-27 ", which is preventing the module from making any sense of the value.
Since I lack the JS prowess to fix this in the calendar end, I added "$value = trim($value);" to the date_jscalendar_make_dbdate() function at line 1062 of date.inc.
Seems too small to make a patch for, but a good change to add.
It might also make sense to add it to the date_widget() function in date.module, so that even without js_calendar, if a user adds whitespace to the beginning or end of a date it won't screw things up.
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedGood catch. Thanks! Fixed in latest cvs. Fix coming soon for 4.7.
Comment #2
(not verified) CreditAttribution: commented