File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
themes/django20/static/js Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ function renderEvents(geojsonData) {
45
45
} ,
46
46
onEachFeature : ( feature , layer ) => {
47
47
const props = feature . properties ;
48
- const eventDate = new Date ( props . date ) ;
48
+ const eventDate = new Date ( props . date + "T00:00:00Z" ) ;
49
49
let eventDateEnd = null ;
50
50
if ( props . end_date ) {
51
51
eventDateEnd = new Date ( props . end_date ) ;
@@ -56,13 +56,15 @@ function renderEvents(geojsonData) {
56
56
year : "numeric" ,
57
57
month : "long" ,
58
58
day : "numeric" ,
59
+ timeZone : "UTC" ,
59
60
} ) ;
60
61
if ( eventDateEnd ) {
61
62
formattedDate += "-" + eventDateEnd . toLocaleDateString ( "en-US" , {
62
63
weekday : "long" ,
63
64
year : "numeric" ,
64
65
month : "long" ,
65
66
day : "numeric" ,
67
+ timeZone : "UTC" ,
66
68
} ) ;
67
69
}
68
70
You can’t perform that action at this time.
0 commit comments