Closed zilm13 closed 9 years ago
This is a workaround and not really a fix, and I'm sure that's the reason for no activity on this PR.
It is a workaround but it certainly fix a present bug (at least partially) I just want to think about this a bit more.
Hey, @zilm13
You was totally correct about your fixes. I was just considering the possibility to make the formatting configurable for the end user. Unfortunately there are some inconsistencies between the format that moment.js uses and the one used in the datetimepicker plugin. So I'm dropping this feature for now.
So your fixes are added https://github.com/simov/express-admin/compare/66c3931...532b672dc9 even though I wasn't able to merge your pull request directly, because I moved quite a few files lately.
Besides that I added i18n support for the datetimepicker as well.
:beers:
Here is an issue: you use AM/PM 12H format for date but AM/PM is not displayed. Moreover, if you open any entity to edit, datetime field will be filled with time without AM/PM in 12H format, so after save if it's PM it will flush to AM. Here's a small fix: just moved to 24H format.