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(
|
||||
block:
|
||||
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 item.pubDate.isSome():
|
||||
item.pubdate =
|
||||
some(parse(item.pubDate.get(), feed.timeFormat).format(atomTimeFormat))
|
||||
if item.updated.isSome():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue