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:
@@ -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(',')
|
||||
|
||||
Reference in New Issue
Block a user