Skip to content

Datetime from react-datepicker is recorded in UTC, dayjs converts to local timezone (EST) #172

@ansonjwhe

Description

@ansonjwhe

image
The date chosen is recorded in UTC.
The getStandardizedDate util uses dayjs which seems to detect the local timezone (EST) and convert the datetime which effectively causes the displayed date to be 1 day earlier.

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