Files
NapCatQQ/.pnpm-store/v3/files/3e/8269ee02c879d6c4810681a7d1e03238de0369d2d0b12c77f04ed5b300228dcd84eee15629de8de574a67644d64104aff1efae699ae4de8598e79b9fa531c3
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
535 B
Plaintext

'use strict';
var callBind = require('call-bind');
var I402 = typeof Intl === 'undefined' ? null : Intl;
var DateTimeFormat = I402 && I402.DateTimeFormat;
var resolvedOptions = DateTimeFormat && callBind(DateTimeFormat.prototype.resolvedOptions);
// https://262.ecma-international.org/14.0/#sec-defaulttimezone
// https://tc39.es/ecma402/2023/#sup-defaulttimezone
module.exports = function DefaultTimeZone() {
if (DateTimeFormat && resolvedOptions) {
return resolvedOptions(new DateTimeFormat()).timeZone;
}
return 'UTC';
};