|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
539 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var callBind = require('call-bind');
|
|---|
| 4 |
|
|---|
| 5 | var I402 = typeof Intl === 'undefined' ? null : Intl;
|
|---|
| 6 | var DateTimeFormat = !!I402 && I402.DateTimeFormat;
|
|---|
| 7 | var resolvedOptions = !!DateTimeFormat && callBind(DateTimeFormat.prototype.resolvedOptions);
|
|---|
| 8 |
|
|---|
| 9 | // https://262.ecma-international.org/14.0/#sec-defaulttimezone
|
|---|
| 10 | // https://tc39.es/ecma402/2023/#sup-defaulttimezone
|
|---|
| 11 |
|
|---|
| 12 | module.exports = function DefaultTimeZone() {
|
|---|
| 13 | if (DateTimeFormat && resolvedOptions) {
|
|---|
| 14 | return resolvedOptions(new DateTimeFormat()).timeZone;
|
|---|
| 15 |
|
|---|
| 16 | }
|
|---|
| 17 | return 'UTC';
|
|---|
| 18 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.