Hi all,
My Date component dropdowns are ordered
Day - Year - Month
Instead of Day - Month - Year.
Just started lately.
[Possibly due to upgrade of dateapi module upgrade to 2.1
which seems to take over Drupal default date display.]
Regards
Alan
Hi all,
My Date component dropdowns are ordered
Day - Year - Month
Instead of Day - Month - Year.
Just started lately.
[Possibly due to upgrade of dateapi module upgrade to 2.1
which seems to take over Drupal default date display.]
Regards
Alan
Comments
Comment #1
quicksketchWebform will try to use the same format as your website. Visit admin/settings/date-time and ensure that your date is correctly ordered there. Webform should then use the same ordering. Otherwise it sounds like it may indeed be a conflict with DateAPI, which changes around a lot of those settings.
Comment #2
alanburke commentedHi Nate
It looks like its a conflict Date API, somehow.
To confirm this,
I added a date component to a webform on a different site [on the same multi-site codebase].
that doesn't have date module installed, and that works fine.
There was another side affect,
when downloading the results in excel, the date was formatted in an unexpected way.
It used the American format m/d/y, which I haven't used in any format anywhere.
Some quick workarounds for anybody else.
Disable all the date module modules, for me this included date, calendar, date timezone, and finally date api.
Then go to admin/setting/date-time.
The 3 options for date formatting now appear again on this page.
Get the short format as you want it to appear in downloads, on the screen etc.
Double check your webform and results downloads.
They should be fine, and the date was always stored correctly, just displayed incorrectly on the downloads.
Re-able the date modules.
Don't mess with the 'short' format again.
Use a different custom format for your CCK fields views etc.
All good again
I'm using this patch
http://drupal.org/node/426990#comment-1498568
against date module
but is shouldn't really have an effect.
Thanks Nate!
Maybe we'll leave it open to see whether anybody else stumbles across this too.
Alan
Comment #3
quicksketchWith a large number of sites using DateAPI, I'd like to accommodate for DateAPI's changed variable settings. I'll move this to a feature request and maybe we can figure out a permanent solution.
Comment #4
fudokai commentedI don't know if this is the right slot (fairly new to Drupal) but ...
I created a date field in CCK but the date keeps being displayed in US format (MDY) whereas my site is set to Europe/London timezone and my date formats are definitely set as DMY.
Is this part of the same problem (DateAPI)?
If so, this needs to be raised as a bug rather than a wishlist item.
I have tried disabling all the Date module components, double checking the site timezone and re-enabling the modules but to no avail.
Followup: I've now installed the dev package which seems to have fixed things as it offers a display format selection.
Comment #5
quicksketchThis change is no longer necessary because DateAPI now works with the core settings and simply allows additional formats in addition to the ones provided by core.