We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a908eb commit a11a1c0Copy full SHA for a11a1c0
compiler_admin/services/harvest.py
@@ -1,6 +1,7 @@
1
-from datetime import datetime, timedelta
2
import os
3
import sys
+import time
4
+from datetime import timedelta
5
from typing import TextIO
6
7
import pandas as pd
@@ -22,7 +23,7 @@ def _calc_start_time(group: pd.DataFrame):
22
23
24
def _duration_str(duration: timedelta) -> str:
25
"""Use total seconds to convert to a datetime and format as a string e.g. 01:30."""
- return datetime.fromtimestamp(duration.total_seconds()).strftime("%H:%M")
26
+ return time.strftime("%H:%M", time.gmtime(duration.total_seconds()))
27
28
29
def _toggl_client_name():
0 commit comments