Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-timezone

bcherny91MIT0.0.5

Get the server's timezone

time, zone, timezone, tz, utc, pst, est, date

readme

node-timezone Build Status npm mit

Get the server's timezone

Install

npm install --save node-timezone

Usage

var getTimezone = require('node-timezone').getTimezone
console.log(getTimezone()) // "America/Los_Angeles"

Tests

npm test

Tested on OSX and Ubuntu. TODO: Test on Windows.