You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seem to be some issues with getting the correct 8am to 8am interval for LC due to the timezone. dayjs() by default will show the local time, so I assume whatever server the bot is running on is running on a timezone that is not UTC+8 (UTC?) Here's some suggestions on what we can do:
(Assumes default timezone is UTC)
Take all times via UTC
LC resets at UTC midnight, so set the leftBound and rightBound to midnight of server date
submissionDate will use actual hour of submission and submitted YYYYMMDD
There seem to be some issues with getting the correct 8am to 8am interval for LC due to the timezone. dayjs() by default will show the local time, so I assume whatever server the bot is running on is running on a timezone that is not UTC+8 (UTC?) Here's some suggestions on what we can do:
(Assumes default timezone is UTC)
Take all times via UTC
Use dayjs().tz plugin
Offset the UTC time with +8 (i.e. assume LC resets 8am at UTC time)
The text was updated successfully, but these errors were encountered: