timezone-mock
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -20,5 +20,6 @@ 'use strict'; | ||
var date_iso_8601_regex = /^\d\d\d\d(-\d\d(-\d\d(T\d\d:\d\d:\d\d(\.\d\d\d)?(\d\d\d)?(Z|[+-]\d\d:?\d\d))?)?)?$/; | ||
var date_with_offset = /^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d\d\d)? (Z|(-|\+|)\d\d:\d\d)$/; | ||
var date_with_offset = /^\d\d\d\d-\d\d-\d\d( \d\d:\d\d:\d\d(\.\d\d\d)? )?(Z|(-|\+|)\d\d:\d\d)$/; | ||
var date_rfc_2822_regex = /^\d\d-\w\w\w-\d\d\d\d \d\d:\d\d:\d\d (\+|-)\d\d\d\d$/; | ||
var local_date_regex = /^\d\d\d\d-\d\d-\d\d[T ]\d\d:\d\d(:\d\d(\.\d\d\d)?)?$/; | ||
var local_GMT_regex = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \d\d \w\w\w \d\d\d\d \d\d:\d\d:\d\d GMT$/ | ||
@@ -35,2 +36,3 @@ function MockDate(param) { | ||
param.match(date_rfc_2822_regex) || | ||
param.match(local_GMT_regex) || | ||
param === '' | ||
@@ -37,0 +39,0 @@ ) { |
{ | ||
"name": "timezone-mock", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "A JavaScript library to mock the local timezone.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -79,2 +79,4 @@ timezone-mock | ||
===================== | ||
Note: the `Etc/GMT` timezones work the opposite of how one might expect, the `Etc/GMT+5` timezone is equivalent to US Eastern Standard Time (UTC-5). | ||
Currently supported GMT offsets are: | ||
@@ -81,0 +83,0 @@ * Etc/GMT+12 |
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
33460
1203
133