Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
```