1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

assume always local time for date-meta

This commit is contained in:
Bastian Venthur
2021-02-06 18:50:22 +01:00
parent a517079d8b
commit 67e07a9c00

View File

@@ -59,6 +59,7 @@ def convert_markdown(md, markdown):
# date: datetime
if 'date' in meta:
meta['date'] = datetime.fromisoformat(meta['date'])
meta['date'] = meta['date'].astimezone()
# tags: list[str]
if 'tags' in meta:
tags = meta['tags'].split(',')