aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2023-04-11 03:16:38 +0200
committerLeonard Kugis <leonard@kug.is>2023-04-11 03:16:38 +0200
commit38c94098f416d48b9006d7e7f8556c8543a19513 (patch)
treec6ff59d8b09dcdb1043657c85f746ebeb17c7549
parentbc01c50fae338dcaa28c9ca7ca3ac44e29046c7a (diff)
Corrected cdate and mdate formats for windowsHEADmaster
-rw-r--r--util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.py b/util.py
index 5e0ccce..243d78e 100644
--- a/util.py
+++ b/util.py
@@ -34,10 +34,10 @@ def rename_sha256(fpath):
return rename_hash(fpath, hashlib.sha256())
def rename_cdate(fpath):
- return rename(fpath, datetime.datetime.fromtimestamp(os.path.getctime(fpath)).strftime("%Y-%m-%d_%H:%M:%S:%f"))
+ return rename(fpath, datetime.datetime.fromtimestamp(os.path.getctime(fpath)).strftime("%Y-%m-%d-%H-%M-%S-%f"))
def rename_mdate(fpath):
- return rename(fpath, datetime.datetime.fromtimestamp(os.path.getmtime(fpath)).strftime("%Y-%m-%d_%H:%M:%S:%f"))
+ return rename(fpath, datetime.datetime.fromtimestamp(os.path.getmtime(fpath)).strftime("%Y-%m-%d-%H-%M-%S-%f"))
def image_resize(image, width = None, height = None, inter = cv2.INTER_AREA):
# initialize the dimensions of the image to be resized and