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

Time portion of datetime displays in Event header as PM when it is actually AM

Asked by Scott Smith
10 years ago.

The DataStartField field is set to 2012-11-20 07:00:00.000 in the database. The event displays on the calendar at the correct time, but the header text of the event displays 7:00PM instead of 7:00AM? How can this be fixed?

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

Please see here:

The fix will be included in the next release.

You can fix it in Calendar.js by moving line 1036 two lines lower:

var am = hour < 12;

Place it below this line:

var hour = data.Start.getHours();

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