Skip to content

Commit 6cb0f0d

Browse files
authored
Merge pull request #2119 from jellyfin/jf-2.3.0-fixes
Correct display of date/time
2 parents f8ff12c + 938932b commit 6cb0f0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/search/SearchRow.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ function getData()
8484
end function
8585

8686
sub addRow(data, title, type_filter)
87-
startDate = createObject("roDateTime")
88-
8987
itemData = m.top.itemData
9088
row = data.CreateChild("ContentNode")
9189
row.title = title
9290
for each item in itemData.Items
9391
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")}`
9696
end if
9797
if item.type = type_filter
9898
row.appendChild(item)

0 commit comments

Comments
 (0)