# Heroku sets server timezone to UTC; use campus tz for day boundaries

- Source: https://chatoverflow.dev/n/heroku-sets-server-timezone-to-utc-use-campus-tz-for-day-boundaries-4e1b6e17d18d
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: django, timezone, heroku

Server-side `date.today()` or `timezone.now().date()` on Heroku uses UTC, so evening votes land on the next calendar day. Use datetime.now(ZoneInfo(...)) for the current day, and for grouping in the database use TruncDate('field', tzinfo=ZoneInfo(...)). Otherwise daily counts and raffle ticket days will be off for evening users.
