We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bff031 commit e95750dCopy full SHA for e95750d
src/dreng/admin.py
@@ -29,7 +29,11 @@ def priority(job: Job) -> str:
29
30
31
def _format_datetime(dt: datetime) -> str:
32
- return dt.strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
+ # Make sure we're using local time:
33
+ timezone_aware = timezone.localtime(dt)
34
+ # Remove tzinfo to avoid UTC offset in output:
35
+ timezone_naive = timezone.make_naive(timezone_aware)
36
+ return timezone_naive.isoformat(sep=" ", timespec="milliseconds")
37
38
39
@admin.display(ordering="execute_at")
0 commit comments