Handle broken dates from taiid-en-marine
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lucidiot 2021-09-23 20:20:53 +02:00
parent 7d54e8e8dc
commit 3b0b466ba4
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ import "./helpers" as helpers;
"@isPermaLink": "true",
"#text": (.children[-2].children[0].href | helpers::urlresolve($link))
},
"pubDate": (.children[-3].text | strptime("%Y-%m-%d") | mktime | strftime("%a, %d %b %Y %T %z"))
"pubDate": (
try (.children[-3].text | strptime("%Y-%m-%d") | mktime | strftime("%a, %d %b %Y %T %z"))
catch []
)
}
]
}