We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab67f5c commit 13a423cCopy full SHA for 13a423c
1 file changed
docs/components_liveTv_ProgramDetails.bs.html
@@ -229,7 +229,7 @@
229
return translationKeys.DayTomorrow
230
end if
231
232
- ' GetWeekday() returns 0 (Sunday) through 6 (Saturday)
+ ' GetDayOfWeek() returns 0 (Sunday) through 6 (Saturday)
233
weekdays = [
234
translationKeys.DaySunday,
235
translationKeys.DayMonday,
@@ -239,10 +239,10 @@
239
translationKeys.DayFriday,
240
translationKeys.DaySaturday
241
]
242
- weekday = date.GetWeekday()
243
- if not isValid(weekday)
+ weekday = date.GetDayOfWeek()
+ if not isValid(weekday) or type(weekday) <> "roInt" or weekday < 0 or weekday > 6
244
' Fallback: compute weekday from seconds (epoch Jan 1 1970 = Thursday = day 4)
245
- weekday = (dateMidnight / 86400 + 4) mod 7
+ weekday = (dateMidnight \ 86400 + 4) mod 7
246
247
return weekdays[weekday]
248
0 commit comments