javascript - datepicker/moment.js ? displaying wrong date in my locale -


im integrating twitter bootstrap datepicker plugin, im having trouble it.

the plugin in question this: http://eonasdan.github.io/bootstrap-datetimepicker/

it works fine default configuration(uses 'en' language default). when try use different localization example 'lv' shows wrong date. day , month flipped(shows current time july 6 not april 4 correct in location). checked other localizations , seems wrong too, in plugins documentation page, 'ru' localization example has same problem.

correct enter image description here

wrong enter image description here

for localization plugin uses moment.js, (it support 'lv' localization) included.

any idea wrong?

thanks help!

managed fix providing date format mm-dd-yyyy hh:mm.

thanks checked out.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -