@fullcalendar/moment-timezone
@fullcalendar/moment-timezone
npm i @fullcalendar/moment-timezone
@fullcalendar/moment-timezone

@fullcalendar/moment-timezone

Full-sized drag & drop event calendar in JavaScript

by fullcalendar

6.1.4 (see all)License:MITTypeScript:Built-In
npm i @fullcalendar/moment-timezone
Readme

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()
VersionTagPublished
6.1.4
latest
1mo ago
5.11.4
legacy
2mos ago
6.0.0-beta.4
beta
3mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate