This commit is contained in:
Mario Voigt 2024-01-16 23:03:48 +01:00
commit 06f19fd0f0

View File

@ -3,11 +3,11 @@
""" """
Upgrade MightyScape from Inkscape Extension Dialog. Made for end users Upgrade MightyScape from Inkscape Extension Dialog. Made for end users
Extension for InkScape 1.2.1 Extension for InkScape 1.3.2
Author: Mario Voigt / FabLab Chemnitz Author: Mario Voigt / FabLab Chemnitz
Mail: mario.voigt@stadtfabrikanten.org Mail: mario.voigt@stadtfabrikanten.org
Date: 14.05.2021 Date: 14.01.2024
Last patch: 07.11.2022 Last patch: 07.11.2024
License: GNU GPL v3 License: GNU GPL v3
ToDo ToDo
@ -17,8 +17,7 @@ ToDo
import inkex import inkex
import os import os
import warnings import warnings
from datetime import datetime from datetime import datetime, timezone
try: try:
import git import git
from git import Repo #requires GitPython lib from git import Repo #requires GitPython lib
@ -155,7 +154,7 @@ class AboutUpgradeMightyScape(inkex.EffectExtension):
inkex.utils.debug("Latest {} local commits are:".format(len(localCommits))) inkex.utils.debug("Latest {} local commits are:".format(len(localCommits)))
for i in range(0, len(localCommits)): for i in range(0, len(localCommits)):
inkex.utils.debug("{} | {} : {}".format( inkex.utils.debug("{} | {} : {}".format(
datetime.utcfromtimestamp(localCommitList[i].committed_date).strftime('%Y-%m-%d %H:%M:%S'), datetime.fromtimestamp(localCommitList[i].committed_date, tz=timezone.utc).strftime('%Y-%m-%d %H:%M:%S'),
localCommitList[i].name_rev[:7], localCommitList[i].name_rev[:7],
localCommitList[i].message.strip()) localCommitList[i].message.strip())
) )