Skip to content

Commit 2a05e86

Browse files
author
MrButtCode
committed
refactor(health): simplify timezone aware datetime formatting
1 parent f4b62ba commit 2a05e86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mod_health/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def health_check() -> Tuple[Any, int]:
7979

8080
checks: Dict[str, Any] = {
8181
'status': 'healthy' if all_healthy else 'unhealthy',
82-
'timestamp': datetime.now(timezone.utc).replace(tzinfo=None).isoformat() + 'Z',
82+
'timestamp': datetime.now(timezone.utc).isoformat(),
8383
'checks': check_results
8484
}
8585

0 commit comments

Comments
 (0)