logo

/Doc|v1.1.1

Typedef

Timezone:

object

typedef.jsline 1

PROPERTIES
NameTypeDescription

timezoneOffset

[ number ]

Minutes for your timezone offset. If null, use the browser's timezone. Refer to Date.prototype.getTimezoneOffset()

displayLabel

[ string ]

Display label of your timezone at weekly/daily view (e.g. 'GMT+09:00')

tooltip

[ string ]

Tooltip (e.g. 'Seoul')

EXAMPLES
const timezoneName = moment.tz.guess();
const cal = new Calendar('#calendar', {
  timezones: [
    {
      timezoneOffset: 540,
      displayLabel: 'GMT+09:00',
      tooltip: 'Seoul'
    },
    {
      timezoneOffset: -420,
      displayLabel: 'GMT-08:00',
      tooltip: 'Los Angeles'
    }
  ]
});
Resizable