andrewmcveigh / cljs-time

A clj-time inspired date library for clojurescript.
342 stars 57 forks source link

Use default pivot year to parse `yy` #110

Closed andrewmcveigh closed 6 years ago

andrewmcveigh commented 6 years ago

Where a year formatter "yy" recieves a value less than 36 (currently 29 years in the future) joda-time adds the century 2000 to the year. goog.date does not do this, and always adds 1900 to the year if the year is < 100.

This commit normalizes the behaviour to match joda-time.