timezone-mock
Advanced tools
Comparing version
@@ -27,3 +27,3 @@ var assert = require('assert'); | ||
} else if (typeof param === 'string') { | ||
if (param.match(date_iso_8601_regex) || param.match(date_with_offset) || param.match(date_rfc_2822_regex)) { | ||
if (param.match(date_iso_8601_regex) || param.match(date_with_offset) || param.match(date_rfc_2822_regex) || param === '') { | ||
this.d = new _Date(param); | ||
@@ -30,0 +30,0 @@ } else if (param.match(local_date_regex)) { |
{ | ||
"name": "timezone-mock", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A JavaScript library to mock the local timezone.", | ||
@@ -26,3 +26,7 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/Jimbly/timezone-mock" | ||
"homepage": "https://github.com/Jimbly/timezone-mock", | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test": "node tests/test-constructors.js" | ||
} | ||
} |
23767
0.45%