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

TimeRange Selecting adds one hour

Asked by Anonymous
10 years ago.

I'm not sure if this is a localised error to do with timezones, but when I select a timerange in the scheduler, when I parse the e.start value it seems to add one hour to the start and end values.

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

How do you read the e.start value?

On the client side, e.start() returns a DayPilot.Date object. It holds the date in the internal .d property which shouldn't be read directly (it's stored as a GMT date there). If you check the value using .toString() or .value it should return the correct date string.

Please let me know if you can still see the problem.

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