@@ -5,7 +5,7 @@ import FullCalendar from '@fullcalendar/react';
5
5
import rrulePlugin from '@fullcalendar/rrule' ;
6
6
import timeGridPlugin from '@fullcalendar/timegrid' ;
7
7
8
- import { mdiCalendarRange , mdiClose , mdiMapMarkerOutline } from '@mdi/js' ;
8
+ import { mdiCalendarRange , mdiClose , mdiMapMarkerOutline , mdiClock } from '@mdi/js' ;
9
9
import Icon from '@mdi/react' ;
10
10
import parse from 'html-react-parser' ;
11
11
import { createRef , useCallback , useEffect , useMemo , useState } from 'react' ;
@@ -136,6 +136,7 @@ function App() {
136
136
const toDate = printDate ( eventDetails . end ) ;
137
137
const fromTime = printTime ( eventDetails . start ) ;
138
138
const toTime = printTime ( eventDetails . end ) ;
139
+ const timeZone = Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone ;
139
140
let eventTime = '' ;
140
141
if ( fromDate == toDate ) {
141
142
eventTime = fromDate + ' ' + fromTime + ' - ' + toTime ;
@@ -213,6 +214,12 @@ function App() {
213
214
</ div >
214
215
< div > { eventTime } </ div >
215
216
</ div >
217
+ < div className = "event-timeZone" >
218
+ < div className = "icon" >
219
+ < Icon path = { mdiClock } size = { 0.75 } />
220
+ </ div >
221
+ < div > Time Zone: { timeZone } </ div >
222
+ </ div >
216
223
{ eventLocation && (
217
224
< div className = "event-location" >
218
225
< div className = "icon" >
0 commit comments