Skip to content

Date and time tasks don't make sense (if not in UTC) #3561

@Sammeeey

Description

@Sammeeey

Maybe there's an error in my logic.
But all the tasks & solutions in Date and time don't really make sense if you aren't coincidentally living in UTC+0, right?

My Win 10 always displays dates with 1 hour delay (because I'm in central European summer time UTC+1):
console.log(new Date(2012,2,1)) doesn't display 1st of March but 2012-02-29T23:00:00.000Z

Shouldn't the tasks explicitly work with UTC time zone & the respective methods, in order to make results inclusive?

Metadata

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