mde/timezone-js

Copy constructor for timezoneJS.Date objects

mnpenner opened this issue · 1 comments

var newDate = new timezoneJS.Date(oldTimezoneJsDateObj)

Constructs a new date but discards the timezone information from the old date. I'm presently working around the issue by constructing it this way:

var newDate = new timezoneJS.Date(oldTimezoneJsDateObj, oldTimezoneJsDateObj.timezone)

This issue shouldn't be hard to fix. Can you provide a simple test case for this?