Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cfal/set-timezone
Set the timezone for the default Date object
https://github.com/cfal/set-timezone
Last synced: about 1 month ago
JSON representation
Set the timezone for the default Date object
- Host: GitHub
- URL: https://github.com/cfal/set-timezone
- Owner: cfal
- Created: 2016-03-29T22:06:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T03:37:28.000Z (almost 9 years ago)
- Last Synced: 2024-11-17T13:47:27.340Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# set-timezone
Set the timezone for the default Date object
## Usage
```
console.log(new Date().toString()); // Default system timezone// Set timezone
require('set-timezone')('America/New_York')console.log(new Date().toString()); // Replaced timezone (New York/ET)
```