Skip to content

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

Open
@GnanaAjana

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions