From a3d9f924c8bcd8b00cf1487a8f897414784d6979 Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 2 Apr 2025 09:49:40 +0800 Subject: [PATCH] Enhance timezone retrieval to fallback on browser timezone if not set in settings --- npm/packs/core/src/abp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/packs/core/src/abp.js b/npm/packs/core/src/abp.js index ac050351e1..8d11ad1fec 100644 --- a/npm/packs/core/src/abp.js +++ b/npm/packs/core/src/abp.js @@ -753,7 +753,7 @@ var abp = abp || {}; } abp.clock.timeZone = function () { - return abp.setting.get('Abp.Timing.TimeZone'); + return abp.setting.get('Abp.Timing.TimeZone') || abp.clock.browserTimeZone(); } // Normalize Date object or date string to standard string format that will be sent to server