diff --git a/docs/plugin/timezone.md b/docs/plugin/timezone.md index a2375c2b8..566dd9488 100644 --- a/docs/plugin/timezone.md +++ b/docs/plugin/timezone.md @@ -6,8 +6,8 @@ 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)