Releases: exogen/pacific-time-offset
Releases · exogen/pacific-time-offset
Release list
v1.0.0
Breaking Change
pacificTimeOffsetandisDaylightTimenow only accept a single optional argument, which must be a Date instance (a Date instance is no longer constructed for you with the input arguments). If you pass nothing, the current Date is still used.- The offsets returned are now -480 and -420, deviating from the return value of JavaScript’s
getTimezoneOffset()method. This matches how Moment and Luxon return the offset, which is from UTC not to UTC like the Date method, and makes more sense.
Enhancement
- Now compatible with older ES5 syntax.