Skip to content

is it a bug? setting up process.env.TZ depends on order of execution. #3449

Closed
@nsisodiya

Description

@nsisodiya

screen shot 2015-10-20 at 6 45 01 pm

new Date('2015-10-20').getDay() giving me 2. in first case, and in second case, it is giving me 1.
Only difference is, In first case, I am calling it twice.
Also, Day is a timezone independant concept, I do not know why changing timezone, is giving different result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-apiIssues and PRs related to the i18n implementation.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions