2
Answers
Vote up!
0
Vote down!

Pop up date not localized / don't show dates in the past

I have a field on the checkout page of my Drupal Commerce webshop.
The user can pick a date for delivery.

The problem is that the date isn't formatted correctly. It should be dd-mm-yyyy, but it is mm/dd/yyyy. I have a correct date display created.

The strange thing is that when you select the date, and you go to the checkout page, the delivery date there is correct.

What i also would like to do, is to make it inpossible to select a date in the past, and disable the days that the store is closed.

I have searched and found some possible solutions, but i can't seem to get it to work. Any help/tips would be appreciated!

Thanks for your help.

Asked by: joost
on August 9, 2013

2 Answers

Vote up!
0
Vote down!

This appears to be related to the "DateFormat" feature request / bug report / regression that was mentioned here:

https://drupal.org/node/1409120

A "proper" solution would include a fix to the Date module ... perhaps one of the patches would fix you up? Another option would be to slap another bit of jQuery on there to see if you can "force" it to work...

http://jqueryui.com/datepicker/#date-formats

Josh Miller
Answer by: Josh Miller
Posted: Aug 9, 2013
Vote up!
0
Vote down!

Thanks for your help, but the patch is for exposed filters, i have applied it but it doesn't change anything on the cart checkout page.

I also tried the jQuery solution but had no luck with that either.

I'm going to dig into a bit further.

Answer by: joost
Posted: Aug 10, 2013