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

EndOf Years bug #90

Open
hidrodixtion opened this issue May 8, 2017 · 2 comments
Open

EndOf Years bug #90

hidrodixtion opened this issue May 8, 2017 · 2 comments

Comments

@hidrodixtion
Copy link

There's a bug when getting EndOf a year

Detailed Description

let now = moment()
let endYear = now.subtract(1, .Years).endOf(.Years)  // 2016-12-30 23:59:59

expected result is 2016-12-31 23:59:59

@fpillet
Copy link
Collaborator

fpillet commented May 19, 2017

What are your timeZone and locale ?

@hidrodixtion
Copy link
Author

TimeZone: Asia/Jakarta
Locale: en_US

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

2 participants