Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End of date in Current locale is wrong #236

Open
rameezhandel opened this issue Dec 12, 2017 · 0 comments
Open

End of date in Current locale is wrong #236

rameezhandel opened this issue Dec 12, 2017 · 0 comments

Comments

@rameezhandel
Copy link

When you try to get the end of the year by using
let endOfYear = Date().end(of: .year)
endOfYear is showing next year's end!!!!!

Date() => 2017-04-03T00:00:00.000+0400
output => 2018-12-31T23:59:59.000+0400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant