lowercase mod to satisfy bsfmt

This commit is contained in:
sevenrats 2023-01-25 12:44:38 -05:00
parent 42f2c24217
commit 58f43f5353

View File

@ -243,8 +243,8 @@ function getRelativeDayName(date) as string
end if
' Check for Yesterday
todayMidnight = now.AsSeconds() - (now.AsSeconds() MOD 86400)
dateMidnight = date.AsSeconds() - (date.AsSeconds() MOD 86400)
todayMidnight = now.AsSeconds() - (now.AsSeconds() mod 86400)
dateMidnight = date.AsSeconds() - (date.AsSeconds() mod 86400)
if todayMidnight - dateMidnight = 86400
return "yesterday"
@ -266,8 +266,8 @@ function getDurationStringFromSeconds(seconds) as string
minutes = seconds / 60.0
if minutes > 60
hours = (minutes - (minutes MOD 60)) / 60
minutes = minutes MOD 60
hours = (minutes - (minutes mod 60)) / 60
minutes = minutes mod 60
end if
if hours > 0