Browse Source

Enhance timezone retrieval to fallback on browser timezone if not set in settings

pull/22236/head
maliming 2 years ago
parent
commit
a3d9f924c8
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 2
      npm/packs/core/src/abp.js

2
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

Loading…
Cancel
Save