diff --git a/mmpm/magicmirror/package.py b/mmpm/magicmirror/package.py index 04f1755..f3d4ffa 100644 --- a/mmpm/magicmirror/package.py +++ b/mmpm/magicmirror/package.py @@ -11,7 +11,6 @@ import requests from bs4 import NavigableString, Tag - from mmpm.constants import color from mmpm.env import MMPMEnv from mmpm.log.factory import MMPMLogFactory @@ -546,7 +545,7 @@ def health(cls): reset: int = github_api["rate"]["reset"] remaining: int = github_api["rate"]["remaining"] - reset_time = datetime.datetime.utcfromtimestamp(reset).strftime("%Y-%m-%d %H:%M:%S") + reset_time = datetime.datetime.fromtimestamp(reset, datetime.UTC).strftime("%Y-%m-%d %H:%M:%S") if not remaining: health["github"][ diff --git a/mmpm/ui.py b/mmpm/ui.py index c265320..78ad269 100644 --- a/mmpm/ui.py +++ b/mmpm/ui.py @@ -2,7 +2,6 @@ import importlib.resources as pkg_resources import json import os -import sys from shutil import rmtree, which from sys import executable