-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
My local timezone is UTC+3
const tzDate = new TZDate(date, 'Etc/GMT');
// tzDate: 2025-05-12T13:13:29.697Z
const updatedDate = set(date, { hours: 9, minutes: 0, seconds: 0, milliseconds: 0 });
// updatedDate: 2025-05-12T06:00:00.000ZI expect updatedDate to have 9 hours, as I set the number of hours to the existing date, stripped of any knowledge of time zones.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Inbox