diff --git a/package.json b/package.json index 534812d..704ef72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "holy-time", - "version": "3.4.2", + "version": "3.4.3", "description": "Utility functions", "repository": "Yet another (type-safe) date time library", "main": "dist/index.js", diff --git a/src/time.ts b/src/time.ts index 20cb6c1..c3a0184 100644 --- a/src/time.ts +++ b/src/time.ts @@ -28,7 +28,7 @@ export class HolyTime { timeZone = TIMEZONE_MAP[timeZone] ?? timeZone; - return new Date(date.toLocaleString('en-US', { timeZone })); + return new Date(new Date(date.toLocaleString('en-US', { timeZone })).setMilliseconds(0)); } private static getUnit(unit: HumanUnit): ValueOf {