
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
Pretty time zone:
+2or-9:30
$ npm install --save time-zone
const timeZone = require('time-zone');
// current time zone (in Norway)
timeZone();
//=> '+2'
// time zone in February (in Norway)
timeZone(new Date(2016, 1, 1));
//=> '+1'
// current time zone (in French Polynesia)
timeZone();
//=> '-9:30'
Type: Date
Default: new Date()
Custom date.
MIT © Sindre Sorhus
FAQs
Pretty time zone: `+2` or `-9:30`
We found that time-zone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.