Use datetime object as datetime object instead of string
This commit is contained in:
parent
0843d180e0
commit
abc6d04a0a
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ def generate_feed(db):
|
||||||
item_children = {
|
item_children = {
|
||||||
"description": post_find_first_plain_line(post[4]),
|
"description": post_find_first_plain_line(post[4]),
|
||||||
"guid": f"https://blog.allsparkinfinite.name/{post[0]}/",
|
"guid": f"https://blog.allsparkinfinite.name/{post[0]}/",
|
||||||
"pubDate": datetime.strptime(post[2], "%Y-%m-%d %T").strftime("%a, %d %b %Y %T GMT"),
|
"pubDate": post[2].strftime("%a, %d %b %Y %T GMT"),
|
||||||
"title": post[3],
|
"title": post[3],
|
||||||
"content:encoded": markdown(post[4]),
|
"content:encoded": markdown(post[4]),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue