diligence/diligence/routers
Claude c37543b009 feat: timezone auto-detection, branding fix, frontend rebuild
Timezone:
- Add diligence/utils/dates.py with today_for_user(), now_for_user(), day_start_utc()
- Replace all 20 date.today() calls across 10 files with timezone-aware helpers
- Remove hardcoded Asia/Bangkok offset hack in nutrition router
- Change defaults from Asia/Bangkok to UTC in user model, nutrition model, config
- Add timezone field to RegisterRequest schema
- Set user.timezone from browser detection during registration
- Frontend sends Intl.DateTimeFormat().resolvedOptions().timeZone on register

Branding:
- Login page: Fitness Rewards -> Diligence, updated tagline and emoji
- index.html title: Fitness Rewards -> Diligence

Frontend rebuild:
- Fresh Vite build with all changes (index-CsKoBN0D.js)
- Nav bar, timezone detection, and branding all verified in built bundle
2026-07-04 07:16:23 +00:00
..
__init__.py v2.0: dual deployment — pip install (SQLite) + Docker (PostgreSQL) 2026-07-01 03:30:12 +00:00
activities.py v2.0: dual deployment — pip install (SQLite) + Docker (PostgreSQL) 2026-07-01 03:30:12 +00:00
agent.py feat: MCP server for pip install path 2026-07-01 04:54:56 +00:00
ai_chat.py v2.0: dual deployment — pip install (SQLite) + Docker (PostgreSQL) 2026-07-01 03:30:12 +00:00
auth.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00
catalog.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00
food.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00
integrations.py v2.0: dual deployment — pip install (SQLite) + Docker (PostgreSQL) 2026-07-01 03:30:12 +00:00
meal_plans.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00
nutrition.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00
onboarding.py v2.0: dual deployment — pip install (SQLite) + Docker (PostgreSQL) 2026-07-01 03:30:12 +00:00
points.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00
programs.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00
support.py feat: timezone auto-detection, branding fix, frontend rebuild 2026-07-04 07:16:23 +00:00