@fullcalendar/moment-timezone
TypeScript icon, indicating that this package has built-in type declarations

6.1.11 • Public • Published

FullCalendar Moment Timezone Plugin

Enhanced named time zone functionality with Moment Timezone

Installation

First, ensure Moment Timezone is installed:

npm install moment-timezone

Then, install the FullCalendar core package, the Moment Timezone plugin, and any other plugins (like daygrid):

npm install @fullcalendar/core @fullcalendar/moment-timezone @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugin:

import { Calendar } from '@fullcalendar/core'
import momentTimezonePlugin from '@fullcalendar/moment-timezone'
import dayGridPlugin from '@fullcalendar/daygrid'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [
    momentTimezonePlugin,
    dayGridPlugin
  ],
  initialView: 'dayGridMonth',
  timeZone: 'America/New_York' // enhance named time zones
})

calendar.render()

Dependents (14)

Package Sidebar

Install

npm i @fullcalendar/moment-timezone

Weekly Downloads

54,346

Version

6.1.11

License

MIT

Unpacked Size

6.72 kB

Total Files

8

Last publish

Collaborators

  • arshaw