[loggi-uyd] Consolidate duplicate datetime parsing helpers #121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bead ID:
loggi-uydType: task
Priority: P3
Status: closed
Close reason: Consolidated _parse_iso (routes.py) and _parse_dt_param (stats.py) into a single parse_iso_datetime helper in new app/utils.py. Both modules now import from the shared location.
routes.py has _parse_iso() and stats.py has _parse_dt_param() — both parse ISO datetime strings with Z→+00:00 handling and tz-aware output. Consolidate into a single helper in a shared location (e.g. utils module or models.py) and use it everywhere.