aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-03-10 20:47:52 -0800
committerclarkzjw <[email protected]>2023-03-10 20:47:52 -0800
commit678496cc0757951478d16f8bd18c244dc581de40 (patch)
tree4d6272638f0fd3b76ed1affbffad44a84b4d11eb
parenteecacbedb578bfae5d062245aa3185ad9cf3954c (diff)
downloadphoto-678496cc0757951478d16f8bd18c244dc581de40.tar.gz
bot: update datetime
-rw-r--r--bot/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 1370c54..c436f21 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -156,7 +156,7 @@ async def process(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
156 if ExifTags.TAGS[key] == "Model": 156 if ExifTags.TAGS[key] == "Model":
157 camera_model = val 157 camera_model = val
158 elif ExifTags.TAGS[key] == "DateTime": 158 elif ExifTags.TAGS[key] == "DateTime":
159 shot_datetime = val 159 shot_datetime = datetime.strptime(val, "%Y:%m:%d %H:%M:%S")
160 160
161 output = io.BytesIO() 161 output = io.BytesIO()
162 im.save(output, format="webp", lossless=False, quality=80) 162 im.save(output, format="webp", lossless=False, quality=80)
Powered by cgit v1.2.3 (git 2.41.0)