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

timezoned-date

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezoned-date - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2

5

lib/index.js

@@ -17,4 +17,3 @@ 'use strict';

OFFSET_SUFFIX = /(((GMT)?[\+\-]\d\d:?\d\d)|Z)(\s*\(.+\))?$/,
OriginalDate = global.Date,
systemOffset = -new OriginalDate().getTimezoneOffset();
OriginalDate = global.Date;

@@ -104,3 +103,3 @@ var TimezonedDate = (function (_OriginalDate) {

value: function makeConstructor() {
var defaultOffset = arguments.length <= 0 || arguments[0] === undefined ? systemOffset : arguments[0];
var defaultOffset = arguments.length <= 0 || arguments[0] === undefined ? -new OriginalDate().getTimezoneOffset() : arguments[0];

@@ -107,0 +106,0 @@ return (function (_TimezonedDate) {

2

package.json
{
"name": "timezoned-date",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "description": "Work with timezone-aware dates",

Sorry, the diff of this file is not supported yet

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