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.
2 parents 22caa90 + 5800c2d commit 1937a57Copy full SHA for 1937a57
reframe/frontend/reporting/utility.py
@@ -8,7 +8,7 @@
8
import statistics
9
import types
10
from collections import namedtuple
11
-from datetime import datetime, timedelta
+from datetime import datetime, timedelta, timezone
12
from numbers import Number
13
from .storage import StorageBackend
14
@@ -89,7 +89,9 @@ def _parse_timestamp(s):
89
if isinstance(s, Number):
90
return s
91
92
- now = datetime.now()
+ # Use UTC timezone to avoid daylight saving skewing when adding/subtracting
93
+ # periods across a daylight saving switch date
94
+ now = datetime.now(timezone.utc)
95
96
def _do_parse(s):
97
if s == 'now':
0 commit comments