search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

TimeFormat recognizion doesn't seem to work perfectly in the calendar

Asked by Viktor Eriksson
9 years ago.

Using a swedish locale, timeFormat will display AM/PM which is wrong, we use 24 hour format.

Answer posted by Dan Letecky [DayPilot]
9 years ago.

The Swedish locale is defined like this:

DayPilot.Locale.register(new DayPilot.Locale('sv-se', 
  'dateTimePattern':'yyyy-MM-dd HH:mm',

It looks like the locale might not be set correctly (using the default "en-us" locale?).

Running this following code in the JS console at the calendar demo page seems to work:

dp.locale = "sv-se";

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.