Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browser-tz

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-tz - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

7

add.js

@@ -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()
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc