Skip to content

Commit ab67f5c

Browse files
chore(docs): update code docs
1 parent d180e32 commit ab67f5c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/components_liveTv_ProgramDetails.bs.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@
239239
translationKeys.DayFriday,
240240
translationKeys.DaySaturday
241241
]
242-
return weekdays[date.GetWeekday()]
242+
weekday = date.GetWeekday()
243+
if not isValid(weekday)
244+
' Fallback: compute weekday from seconds (epoch Jan 1 1970 = Thursday = day 4)
245+
weekday = (dateMidnight / 86400 + 4) mod 7
246+
end if
247+
return weekdays[weekday]
243248

244249
end function
245250

0 commit comments

Comments
 (0)