spencermountain / spacetime

A lightweight javascript timezone library
http://spacetime.how/
Other
3.97k stars 183 forks source link

'yy' format in unixFmt doesn't pad with zeros #302

Closed tomfen closed 2 years ago

tomfen commented 3 years ago

https://github.com/spencermountain/spacetime/blob/ea703a7d557efd90ccae894db96368d750be93b6/src/methods/format/unixFmt.js#L14-L17

This fails if the two last digits begin with a zero (eg. 2000). Parsing to int should be removed.

spencermountain commented 3 years ago

hey @tomfen - thank you. this is a good find. will add it to the next release. cheers

spencermountain commented 2 years ago

thanks @tomfen - this is fixed now in 7.0.0 cheers