Conflict with date.js's Date.parse
epervago opened this issue · 2 comments
epervago commented
The commit that closed issue #95 introduced a subtle bug when timezone.js is used together with date.js. The latter overrides Date.parse method to return null, not NaN for invalid dates, breaking the isNaN check which tries to detect timezone names. This results in timezoneJS.Date's constructor ignoring the timezone argument in any of the calling formats. Proposed fix is to add a check for null as an OR to isNaN.
longlho commented
Some code sample do demonstrate your use case please?
eugenehp commented
because of this one https://gist.github.com/eugenehp/6160895