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

startOf('day') gets previous day using ember-moment service #309

Open
GnanaAjana opened this issue May 31, 2019 · 0 comments
Open

startOf('day') gets previous day using ember-moment service #309

GnanaAjana opened this issue May 31, 2019 · 0 comments

Comments

@GnanaAjana
Copy link

version:
ember-moment: 7.4.1

Issue in getting start of date using ember moment service.
get(this, 'moment').moment().startOf('day').toDate() -> gets previous date.
moment().startOf('day').toDate() -> gets correct date.

May I know why this occurs?

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