Skip to content

Selected date is picked but with one day before #226

@ghost

Description

var currentDate = new Date(selectedYear, selectedMonth, selectedDay);

When you are located in different country and get the GMT of the zone, the selected date is one day before if there is no time set.

This line has made my day:
var currentDate = new Date(Date.UTC(selectedYear, selectedMonth, selectedDay));

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