We were passing in dates to the tardy logs report to get logs, but the range was
using dates, not times. This means than the range ends at the start of the
day. So if you ask for tardy logs between 2026年01月01日 and 2026年01月02日, the only
logs that would be included would be ones for events exactly at midnight in that
time zone.
We can use Rails' end_of_day method to fix that.
We were passing in dates to the tardy logs report to get logs, but the range was
using dates, not times. This means than the range ends at the _start_ of the
day. So if you ask for tardy logs between 2026年01月01日 and 2026年01月02日, the only
logs that would be included would be ones for events exactly at midnight in that
time zone.
We can use Rails' `end_of_day` method to fix that.