Skip to content

Incorrect offset format for DateTime #427

Closed
@victorenator

Description

@victorenator

Expected behaviour

new Date().getTimezoneOffset() returns -180 for UTC+3.
DateTime.fromStandardDate(new Date()).toString() should return the value YYYY-MM-DDThh:mm:ss.ms+03:00.

Unexpected behaviour

DateTime.fromStandardDate(new Date()).toString() returns the value YYYY-MM-DDThh:mm:ss.ms-03:00.

JS Date.getTimezoneOffset() returns a negative offset for the positive local timezone.

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