Skip to content

v1.0.0

Latest

Choose a tag to compare

@exogen exogen released this 19 Jan 05:25
· 1 commit to master since this release

Breaking Change

  • pacificTimeOffset and isDaylightTime now 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.