source: frontend/node_modules/es-abstract/2025/SystemTimeZoneIdentifier.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 530 bytes
RevLine 
[9af201e]1'use strict';
2
3var callBind = require('call-bind');
4
5var I402 = typeof Intl === 'undefined' ? null : Intl;
6var DateTimeFormat = !!I402 && I402.DateTimeFormat;
7var resolvedOptions = !!DateTimeFormat && callBind(DateTimeFormat.prototype.resolvedOptions);
8
9// https://262.ecma-international.org/15.0/#sec-systemtimezoneidentifier
10
11module.exports = function SystemTimeZoneIdentifier() {
12 if (DateTimeFormat && resolvedOptions) {
13 return resolvedOptions(new DateTimeFormat()).timeZone; // steps 2 - 3
14
15 }
16
17 return 'UTC'; // step 1
18};
Note: See TracBrowser for help on using the repository browser.