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

Problem with e.start() and e.end() with EventClick and javascript

Asked by Anonymous
17 years ago.

Hi,

I'm trying to open a new popup window with the click event and trying to send start hour/minutes and end hour/minutes as params. The problem is that all those hours that the (e) gives seem to be 2 hours late. Well I'll get them from db for now with the value id. Just thought of reporting a possible problem.

Comment posted by Dan Letecky
17 years ago.
You need to access the dates using getUTC...() methods of the JavaScript Date object. These methods will give you the same date&time as the local date&time on the server. This is not very straightforward but it was necessary because IE and FF handle the summer time differently and it was causing problems.

This is a change introduced in DayPilot Pro 3.9.
Comment posted by Anonymous
17 years ago.
Ok. getUTCHours() and getUTCMinutes() produce the correct times. Thanks for the quick reply.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.