parent
32d5bde113
commit
f28e66b548
1 changed files with 4 additions and 3 deletions
|
|
@ -54,8 +54,9 @@ proc mixRssFeeds*(
|
||||||
entries[^1].items = entries[^1].items.mapIt(
|
entries[^1].items = entries[^1].items.mapIt(
|
||||||
block:
|
block:
|
||||||
var item = it
|
var item = it
|
||||||
if feed.timeFormat.len != 0 and item.pubDate.isSome():
|
if feed.timeFormat.len != 0:
|
||||||
# if the IDE screams at you here, ignore it
|
# if the IDE screams at you here, ignore it
|
||||||
|
if item.pubDate.isSome():
|
||||||
item.pubdate =
|
item.pubdate =
|
||||||
some(parse(item.pubDate.get(), feed.timeFormat).format(atomTimeFormat))
|
some(parse(item.pubDate.get(), feed.timeFormat).format(atomTimeFormat))
|
||||||
if item.updated.isSome():
|
if item.updated.isSome():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue