From 214a742a0729ac613c73658b76aec3ddd60f5082 Mon Sep 17 00:00:00 2001 From: Palash Date: Fri, 7 Oct 2022 22:53:35 +0530 Subject: [PATCH] chore: import is updated to fix the tz type issue --- docs/plugin/timezone.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/plugin/timezone.md b/docs/plugin/timezone.md index a446994c5..50a056cc6 100644 --- a/docs/plugin/timezone.md +++ b/docs/plugin/timezone.md @@ -6,8 +6,9 @@ title: Timezone Timezone adds `dayjs.tz` `.tz` `.tz.guess` `.tz.setDefault` APIs to parse or display between time zones. ```javascript -var utc = require('dayjs/plugin/utc') -var timezone = require('dayjs/plugin/timezone') // dependent on utc plugin +import utc from 'dayjs/plugin/utc'; +import timezone from 'dayjs/plugin/timezone'; // dependent on utc plugin + dayjs.extend(utc) dayjs.extend(timezone)