šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

dayjs-timezone-iana-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dayjs-timezone-iana-plugin

DayJS timezone plugin alternative to manage DST correctly

0.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

Dayjs-timezone-iana-plugin

DayJS timezone plugin alternative to manage DST correctly, using https://www.iana.org/time-zones

Usage

   npm i dayjs-timezone-iana-plugin

In the code:

   dayjs.extend(utc)
   dayjs.extend(require('dayjs-timezone-iana-plugin'))

   dayjs("2014-06-01 12:00").tz("America/New_York")

How to update IANA DB

Todo

  • Add lot of tests (see moment-timezone tests)

FAQs

Package last updated on 08 Dec 2021

Did you know?

Socket

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.

Install

Related posts