Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

bugs in endof #86

Open
qgliu opened this issue Feb 15, 2017 · 0 comments
Open

bugs in endof #86

qgliu opened this issue Feb 15, 2017 · 0 comments

Comments

@qgliu
Copy link

qgliu commented Feb 15, 2017

A bug in endof month (especially February 2017)?

print("endof m", moment().endOf(TimeUnit.Months).date.toDateTime())
print("start of next -1", moment().add(1, TimeUnit.Months).startOf(TimeUnit.Months).subtract(1, "d").date.toDateTime())

The results are
3/2/17, 11:59 PM
and
2/28/17, 12:00 AM

I am with Version 0.6

@qgliu qgliu changed the title bugs on endof bugs in endof Feb 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant