[loggi-uyd] Consolidate duplicate datetime parsing helpers #121

Closed
opened 2026-02-21 20:55:32 +01:00 by matthias · 0 comments
Owner

Bead ID: loggi-uyd
Type: 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.

**Bead ID:** `loggi-uyd` **Type:** 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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
matthias/loggi#121
No description provided.