Skip to content

toISOString should not be effectful #38

@flip111

Description

@flip111

There are a bunch of effectful methods with in the description according to the current machine's date/time. I guess when the machine switches to another timezone or DST the time will be updated.

There are other methods that are not effectful with in description according to UTC.

Description of toISOString https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString

The timezone is always UTC, as denoted by the suffix Z.

IMO this method should be non-effectful like the other UTC methods

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