timezone-mock
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -15,3 +15,32 @@ interface Options { | ||
'US/Pacific' | | ||
'UTC'; | ||
'UTC' | | ||
'Etc/GMT+12' | | ||
'Etc/GMT+11' | | ||
'Etc/GMT+10' | | ||
'Etc/GMT+9' | | ||
'Etc/GMT+8' | | ||
'Etc/GMT+7' | | ||
'Etc/GMT+6' | | ||
'Etc/GMT+5' | | ||
'Etc/GMT+4' | | ||
'Etc/GMT+3' | | ||
'Etc/GMT+2' | | ||
'Etc/GMT+1' | | ||
'Etc/GMT+0' | | ||
'Etc/GMT' | | ||
'Etc/GMT-0' | | ||
'Etc/GMT-1' | | ||
'Etc/GMT-2' | | ||
'Etc/GMT-3' | | ||
'Etc/GMT-4' | | ||
'Etc/GMT-5' | | ||
'Etc/GMT-6' | | ||
'Etc/GMT-7' | | ||
'Etc/GMT-8' | | ||
'Etc/GMT-9' | | ||
'Etc/GMT-10' | | ||
'Etc/GMT-11' | | ||
'Etc/GMT-12' | | ||
'Etc/GMT-13' | | ||
'Etc/GMT-14'; | ||
@@ -18,0 +47,0 @@ export function options(options: Options): void; |
@@ -682,2 +682,205 @@ // Generated this data from mysql_tzinfo_to_sql included with MySQL and the | ||
}, | ||
'Etc/GMT+12': { | ||
names: [-12, '-12'], | ||
transitions: [ | ||
0, -12, | ||
Infinity, -12, | ||
], | ||
}, | ||
'Etc/GMT+11': { | ||
names: [-11, '-11'], | ||
transitions: [ | ||
0, -11, | ||
Infinity, -11, | ||
], | ||
}, | ||
'Etc/GMT+10': { | ||
names: [-10, '-10'], | ||
transitions: [ | ||
0, -10, | ||
Infinity, -10, | ||
], | ||
}, | ||
'Etc/GMT+9': { | ||
names: [-9, '-09'], | ||
transitions: [ | ||
0, -9, | ||
Infinity, -9, | ||
], | ||
}, | ||
'Etc/GMT+8': { | ||
names: [-8, '-08'], | ||
transitions: [ | ||
0, -8, | ||
Infinity, -8, | ||
], | ||
}, | ||
'Etc/GMT+7': { | ||
names: [-7, '-07'], | ||
transitions: [ | ||
0, -7, | ||
Infinity, -7, | ||
], | ||
}, | ||
'Etc/GMT+6': { | ||
names: [-6, '-06'], | ||
transitions: [ | ||
0, -6, | ||
Infinity, -6, | ||
], | ||
}, | ||
'Etc/GMT+5': { | ||
names: [-5, '-05'], | ||
transitions: [ | ||
0, -5, | ||
Infinity, -5, | ||
], | ||
}, | ||
'Etc/GMT+4': { | ||
names: [-4, '-04'], | ||
transitions: [ | ||
0, -4, | ||
Infinity, -4, | ||
], | ||
}, | ||
'Etc/GMT+3': { | ||
names: [-3, '-03'], | ||
transitions: [ | ||
0, -3, | ||
Infinity, -3, | ||
], | ||
}, | ||
'Etc/GMT+2': { | ||
names: [-2, '-02'], | ||
transitions: [ | ||
0, -2, | ||
Infinity, -2, | ||
], | ||
}, | ||
'Etc/GMT+1': { | ||
names: [-1, '-01'], | ||
transitions: [ | ||
0, -1, | ||
Infinity, -1, | ||
], | ||
}, | ||
'Etc/GMT+0': { | ||
names: [0, 'GMT'], | ||
transitions: [ | ||
0, 0, | ||
Infinity, 0, | ||
], | ||
}, | ||
'Etc/GMT': { | ||
names: [0, 'GMT'], | ||
transitions: [ | ||
0, 0, | ||
Infinity, 0, | ||
], | ||
}, | ||
'Etc/GMT-0': { | ||
names: [0, 'GMT'], | ||
transitions: [ | ||
0, 0, | ||
Infinity, 0, | ||
], | ||
}, | ||
'Etc/GMT-1': { | ||
names: [1, '+01'], | ||
transitions: [ | ||
0, 1, | ||
Infinity, 1, | ||
], | ||
}, | ||
'Etc/GMT-2': { | ||
names: [2, '+02'], | ||
transitions: [ | ||
0, 2, | ||
Infinity, 2, | ||
], | ||
}, | ||
'Etc/GMT-3': { | ||
names: [3, '+03'], | ||
transitions: [ | ||
0, 3, | ||
Infinity, 3, | ||
], | ||
}, | ||
'Etc/GMT-4': { | ||
names: [4, '+04'], | ||
transitions: [ | ||
0, 4, | ||
Infinity, 4, | ||
], | ||
}, | ||
'Etc/GMT-5': { | ||
names: [5, '+05'], | ||
transitions: [ | ||
0, 5, | ||
Infinity, 5, | ||
], | ||
}, | ||
'Etc/GMT-6': { | ||
names: [6, '+06'], | ||
transitions: [ | ||
0, 6, | ||
Infinity, 6, | ||
], | ||
}, | ||
'Etc/GMT-7': { | ||
names: [7, '+07'], | ||
transitions: [ | ||
0, 7, | ||
Infinity, 7, | ||
], | ||
}, | ||
'Etc/GMT-8': { | ||
names: [8, '+08'], | ||
transitions: [ | ||
0, 8, | ||
Infinity, 8, | ||
], | ||
}, | ||
'Etc/GMT-9': { | ||
names: [9, '+09'], | ||
transitions: [ | ||
0, 9, | ||
Infinity, 9, | ||
], | ||
}, | ||
'Etc/GMT-10': { | ||
names: [10, '+10'], | ||
transitions: [ | ||
0, 10, | ||
Infinity, 10, | ||
], | ||
}, | ||
'Etc/GMT-11': { | ||
names: [11, '+11'], | ||
transitions: [ | ||
0, 11, | ||
Infinity, 11, | ||
], | ||
}, | ||
'Etc/GMT-12': { | ||
names: [12, '+12'], | ||
transitions: [ | ||
0, 12, | ||
Infinity, 12, | ||
], | ||
}, | ||
'Etc/GMT-13': { | ||
names: [13, '+13'], | ||
transitions: [ | ||
0, 13, | ||
Infinity, 13, | ||
], | ||
}, | ||
'Etc/GMT-14': { | ||
names: [14, '+14'], | ||
transitions: [ | ||
0, 14, | ||
Infinity, 14, | ||
], | ||
}, | ||
}; |
{ | ||
"name": "timezone-mock", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A JavaScript library to mock the local timezone.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -67,3 +67,3 @@ timezone-mock | ||
I found that testing on these three were enough to ensure code worked in | ||
I found that testing on these were enough to ensure code worked in | ||
all timezones (important factor is to test on a timezone with Daylight Saving | ||
@@ -77,2 +77,39 @@ Time if your local timezone does not). Brazil/East has the unique characteristic | ||
Supported GMT Offsets | ||
===================== | ||
Currently supported GMT offsets are: | ||
* Etc/GMT+12 | ||
* Etc/GMT+11 | ||
* Etc/GMT+10 | ||
* Etc/GMT+9 | ||
* Etc/GMT+8 | ||
* Etc/GMT+7 | ||
* Etc/GMT+6 | ||
* Etc/GMT+5 | ||
* Etc/GMT+4 | ||
* Etc/GMT+3 | ||
* Etc/GMT+2 | ||
* Etc/GMT+1 | ||
* Etc/GMT+0 | ||
* Etc/GMT | ||
* Etc/GMT-0 | ||
* Etc/GMT-1 | ||
* Etc/GMT-2 | ||
* Etc/GMT-3 | ||
* Etc/GMT-4 | ||
* Etc/GMT-5 | ||
* Etc/GMT-6 | ||
* Etc/GMT-7 | ||
* Etc/GMT-8 | ||
* Etc/GMT-9 | ||
* Etc/GMT-10 | ||
* Etc/GMT-11 | ||
* Etc/GMT-12 | ||
* Etc/GMT-13 | ||
* Etc/GMT-14 | ||
GMT offsets can be used to test if UTC times fall on particular local calendar days. | ||
Note: `Etc/GMT+0`, `Etc/GMT`, and `Etc/GMT-0` all represent the same offset and are | ||
equivalent to the `UTC` time zone. | ||
Status | ||
@@ -79,0 +116,0 @@ ====== |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32843
1197
130