Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ install_requires =
justbytes>=0.14
packaging
psutil
python-dateutil
wcwidth

package_dir =
Expand Down
4 changes: 2 additions & 2 deletions src/stratis_cli/_actions/_list_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"""

from abc import ABC, abstractmethod
from datetime import datetime
from typing import Any, Callable, Dict, List

from dateutil import parser as date_parser
from dbus import ObjectPath, String
from justbytes import Range

Expand Down Expand Up @@ -258,7 +258,7 @@ def display(self):

try:
created = (
date_parser.isoparse(fs.Created())
datetime.fromisoformat(fs.Created())
.astimezone()
.strftime("%b %d %Y %H:%M")
)
Expand Down
6 changes: 4 additions & 2 deletions src/stratis_cli/_actions/_list_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import json
import os
from abc import ABC, abstractmethod
from datetime import datetime
from typing import Any, Callable, Iterable, Mapping
from uuid import UUID

from dateutil import parser as date_parser
from justbytes import Range

from dbus_client_gen import DbusClientMissingPropertyError
Expand Down Expand Up @@ -431,7 +431,9 @@ def _print_detail_view( # noqa: PLR0912,PLR0915
reencrypted = get_property(
mopool.LastReencryptedTimestamp(),
lambda t: (
date_parser.isoparse(t).astimezone().strftime("%b %d %Y %H:%M")
datetime.fromisoformat(t)
.astimezone()
.strftime("%b %d %Y %H:%M")
),
"Never",
)
Expand Down
Loading