Sugar
Sugar copied to clipboard
Date.get {past: true} does work for weekdays, yet not for Months
d1 = Date.create('01.01.1833')
d1.get('Sunday')
#>>> Sun Dec 30 1832 00:00:00 GMT+0100 (CET)
d1.get('December')
#>>>Sun Dec 01 1833 00:00:00 GMT+0100 (CET)
d1.get('December', {past: true})
#>>>Sun Dec 01 1833 00:00:00 GMT+0100 (CET)
I would have expected to give the December of 1832 on the two last examples.
Wow, this one has taken ages for me to respond to. Put in a fix... thank you!