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.
Hi! Your module is fantastic and very easy to use!
Just one question: the date format is mm/dd/YYYY but i'd like to use the format dd/mm/YYYY everywhere, specially in the notification for the final user when he put a valid coupon but non in the valid period.
Comments
Comment #1
millionleaves CreditAttribution: millionleaves commentedAgreed - surely this should follow the regional settings for the site?
The code to handle this is in coupon_commerce_date.module:
This modified code would be better for a wide range of uses:
This will use the standard Short date format in your Date and Time settings for the site. You could then customise this date format if you want. For example, the Short date default format includes the time, which doesn't look great IMHO (but might be exactly what you want).
Even better would be either providing the option for the administrator to choose which date format to use, or creating a new 'Coupon' date format during installation that can be customised without affecting the default Short date format which may be in use elsewhere on the site.
Comment #2
millionleaves CreditAttribution: millionleaves commented