From 678496cc0757951478d16f8bd18c244dc581de40 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 10 Mar 2023 20:47:52 -0800 Subject: bot: update datetime --- bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/bot.py') 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: if ExifTags.TAGS[key] == "Model": camera_model = val elif ExifTags.TAGS[key] == "DateTime": - shot_datetime = val + shot_datetime = datetime.strptime(val, "%Y:%m:%d %H:%M:%S") output = io.BytesIO() im.save(output, format="webp", lossless=False, quality=80) -- cgit v1.2.3