browser-tz
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -131,8 +131,5 @@ var moment = require("moment-timezone/moment-timezone.js") | ||
var isoDate = parseIsoDate(localISO) | ||
// console.log("isoDate", localISO) | ||
if (isoDate.offset) { | ||
localISO = localISO | ||
.substring(0, localISO.length - isoDate.offset.length) | ||
} | ||
localISO = localISO | ||
.substring(0, localISO.length - isoDate.offset.length) | ||
@@ -139,0 +136,0 @@ |
@@ -17,3 +17,2 @@ var moment = require("moment-timezone/moment-timezone.js") | ||
if (!isoDate) { | ||
// console.log("BAD DATE", date) | ||
return "BAD DATE" | ||
@@ -20,0 +19,0 @@ } |
{ | ||
"name": "browser-tz", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Timezone specific manipulation of datetime strings", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -7,5 +7,6 @@ var test = require("tape") | ||
assert.equal(tz.format("2013-08-10T18:00:00", "hh:mm"), "06:00") | ||
assert.equal(tz.format("2013-08-10T18:00:00"), "2013-08-10T18:00:00-07:00") | ||
var date = tz.format("2013-08-10T18:00:00") | ||
assert.notEqual(date.indexOf("2013-08-10T18:00:00"), -1) | ||
assert.end() | ||
}) |
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
49103
1033