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
12 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?

mvc
Answer posted by Dan Letecky [DayPilot]
12 years ago.

Please see here:

http://forums.daypilot.org/Topic.aspx/1737/am-pm-incorrect-on-event-header-with-clock12hours-setting

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.