File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,15 +84,15 @@ function getData()
84
84
end function
85
85
86
86
sub addRow (data , title , type_filter )
87
- startDate = createObject ("roDateTime " )
88
-
89
87
itemData = m .top .itemData
90
88
row = data .CreateChild ("ContentNode" )
91
89
row .title = title
92
90
for each item in itemData .Items
93
91
if LCase (item .type ) = "program" and isValid (item .json .StartDate )
94
- startDate .FromISO8601String (item .json .StartDate )
95
- item .title += " - " + startDate .AsDateString ("short-date" ) + " " + startDate .AsTimeStringLoc ("short" )
92
+ localStartDate = createObject ("roDateTime " )
93
+ localStartDate .FromISO8601String (item .json .StartDate )
94
+ localStartDate .ToLocalTime ()
95
+ item .title += ` - ${localStartDate .asDateStringLoc ("short" )} ${localStartDate .asTimeStringLoc ("short" )}`
96
96
end if
97
97
if item .type = type_filter
98
98
row .appendChild (item )
You can’t perform that action at this time.
0 commit comments