diff --git a/jq/atsb.jq b/jq/atsb.jq index 123c426..7e7db3f 100644 --- a/jq/atsb.jq +++ b/jq/atsb.jq @@ -21,10 +21,13 @@ import "./helpers" as helpers; "link": (.children[0].children[0].href|helpers::urlresolve("https://www.atsb.gov.au")), "guid": (.children[0].children[0].href|helpers::urlresolve("https://www.atsb.gov.au")), "pubDate": ( - if .children[4].text == "N/A" then .children[2].text else .children[4].text end - | strptime("%d %b %Y") - | mktime - | strftime("%a, %d %b %Y %T %z") + if .children[4].text == "N/A" then [.children[2].text] else [.children[4].text] end + | strings + | map( + strptime("%d %b %Y") + | mktime + | strftime("%a, %d %b %Y %T %z") + ) ) }] }