develop or master branch.$("#datatime").calendar({
timeFormat: "HH:mm:ss",
});
We want to see 24h format, like 21:34:45 (does not 9:34:45 PM).
We have AM/PM fromat
File /lib/web/mage/calendar.js
Lines 396-400
time: {
'a': 'tt',
'HH': 'hh',
'H': 'h'
}
This mask change string format
Why do we need this transformations?
Why do we need this transformations?
Because main producer for date-time configuration is Backend (Php app with ICU datetime format).
Ok, but can I set 24h time format in calendar?
Currently there is fix for issue MAGETWO-52178 waiting to be merged in mainline.
Fix was deivered to mainline (develop branch).