You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm getting an Invalid date error when I try to manipulate timezoned dates on Firefox and Safari. It works as expected on Chrome. I am using startOf, but it seems that other manipulative methods are giving invalid dates as well.
Expected behavior
I'm expecting a valid date on all browsers.
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import timezone from "dayjs/plugin/timezone";
dayjs.extend(utc);
dayjs.extend(timezone);
const date = dayjs().tz("America/New_York").startOf("month");
console.log(date.format());
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm getting an
Invalid date
error when I try to manipulate timezoned dates on Firefox and Safari. It works as expected on Chrome. I am usingstartOf
, but it seems that other manipulative methods are giving invalid dates as well.Expected behavior
I'm expecting a valid date on all browsers.
Information
Minimum code to reproduce it:
The text was updated successfully, but these errors were encountered: