Skip to content

Commit 3041c62

Browse files
MrButtCodecanihavesomecoffee
authored andcommitted
refactor(health): remove remaining timezone stripping hacks
1 parent e02c3ed commit 3041c62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mod_health/controllers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def liveness_check() -> Tuple[Any, int]:
9999
"""
100100
return jsonify({
101101
'status': 'alive',
102-
'timestamp': datetime.now(timezone.utc).replace(tzinfo=None).isoformat() + 'Z'
102+
'timestamp': datetime.now(timezone.utc).isoformat()
103103
}), 200
104104

105105

@@ -172,7 +172,7 @@ def version_check() -> Tuple[Any, int]:
172172
git_info = get_git_info()
173173

174174
response = {
175-
'timestamp': datetime.now(timezone.utc).replace(tzinfo=None).isoformat() + 'Z',
175+
'timestamp': datetime.now(timezone.utc).isoformat(),
176176
'git': git_info,
177177
}
178178

0 commit comments

Comments
 (0)