logoalt Hacker News

ruslanty • last Thursday at 11:22 AM • 0 replies • view on HN

For reports by local date, I’d convert both local midnights to timestamptz separately, then filter with ts >= start AND ts < end. If you take the first midnight and just add 24 hours, you can miss an hour or pull in an hour from the next day when the clocks change