Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Create form seems only to accept American Date formats. Why don't you use a standard timezone-aware date widget?
Comments
Comment #1
aidanlis CreditAttribution: aidanlis commentedAlthough you're incorrect as strtotime will use whatever locale you have set on your server, I agree that this is not a nice UI.
Comment #2
aidanlis CreditAttribution: aidanlis commentedOkay, with a lot of hacking around in FAPI I have finally fixed this. The main reason I didn't use date was there's no such thing as an optional date. using #after_build and #element_validate I've fixed this.