Skip to content

addMinutes() across daylight savings going out gets the wrong time #519

@joshbmarshall

Description

@joshbmarshall

In my project I use diffInMinutes to get the start of day, then round that minutes down to a quarter hour, then add the minutes to the start of day to get the appropriate time.

But when the day has daylight savings going out, it calculates the hour incorrectly.

I created PR #518 to show the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions