We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be663a0 commit 8ad9351Copy full SHA for 8ad9351
qubes/storage/__init__.py
@@ -28,8 +28,7 @@
28
import os.path
29
import string
30
import subprocess
31
-import time
32
-from datetime import datetime
+from datetime import datetime, timezone
33
34
import asyncio
35
from typing import Dict, Tuple, Union
@@ -1013,7 +1012,9 @@ def driver_parameters(name):
1013
1012
1014
def isodate(seconds):
1015
''' Helper method which returns an iso date '''
1016
- return datetime.utcfromtimestamp(seconds).isoformat("T")
+ return datetime.fromtimestamp(
+ seconds, tz=timezone.utc
1017
+ ).isoformat().replace("+00:00", "")
1018
1019
def search_pool_containing_dir(pools, dir_path):
1020
''' Helper function looking for a pool containing given directory.
0 commit comments