mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
localize flatpickr date format
Flatpickr can format date. Use a localized dateFormat.
This commit is contained in:
@@ -25,7 +25,7 @@ $(document).ready(function(){
|
||||
}
|
||||
);
|
||||
window.FLATPICKR_DATE_DEFAULT = {
|
||||
dateFormat: "Y-m-d H:i",
|
||||
dateFormat: Spree.translations.flatpickr_date_format,
|
||||
locale: I18n.locale
|
||||
}
|
||||
window.FLATPICKR_DATETIME_DEFAULT = Object.assign(
|
||||
|
||||
Reference in New Issue
Block a user