tia/public
Mannu cfb0f4b2eb Fix timestamp timezone — logs now always show in IST regardless of server TZ
Root cause: postgres.js v3 parses `timestamp without timezone` columns as
`new Date("YYYY-MM-DD HH:mm:ss")` (space format, no Z). V8 treats this as
*local time*, so on a non-UTC server (Dokploy host = Europe/Helsinki UTC+3)
the parsed Date object is 3 hours off, making logged times show as server
time instead of the user's IST.

Fixes:
- db/index.ts: add custom `timestamp` type parser that forces UTC by
  converting space-format to ISO with 'Z' before calling new Date().
  Also set `connection: { TimeZone: "UTC" }` so PostgreSQL sessions always
  store/return timestamps in UTC regardless of server OS timezone.
- CalendarView.tsx: use `dateIST()` for day grouping (fixes midnight-boundary
  bug where a 12:30 AM IST entry appeared on the previous UTC day) and
  `fmtTime()` for time display (replaces toLocaleTimeString without timezone).
- MedicineTab.tsx: replace toLocaleString() with fmtDate/fmtTime (IST-aware).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 23:13:57 +05:30
..
icons feat(pwa): add Serwist service worker, manifest, icons, install prompt 2026-05-27 23:20:48 +05:30
file.svg chore: initial setup 2026-05-10 03:33:32 +05:30
globe.svg chore: initial setup 2026-05-10 03:33:32 +05:30
icon.svg polish(marketing): favicon, scroll-reveal nav, Google button, font + hovers 2026-05-26 00:05:10 +05:30
next.svg chore: initial setup 2026-05-10 03:33:32 +05:30
sw.js Fix timestamp timezone — logs now always show in IST regardless of server TZ 2026-05-28 23:13:57 +05:30
vercel.svg chore: initial setup 2026-05-10 03:33:32 +05:30
window.svg chore: initial setup 2026-05-10 03:33:32 +05:30