Sugar icon indicating copy to clipboard operation
Sugar copied to clipboard

Date.get {past: true} does work for weekdays, yet not for Months

Open thomasf1 opened this issue 8 years ago • 1 comments

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.

thomasf1 avatar Nov 16 '17 16:11 thomasf1

Wow, this one has taken ages for me to respond to. Put in a fix... thank you!

andrewplummer avatar Jul 28 '18 18:07 andrewplummer