aboutsummaryrefslogtreecommitdiff
path: root/rssg
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-04 17:08:48 +0000
committerng0 <ng0@n0.is>2019-11-04 17:08:48 +0000
commit2f79ffc9c4d6f200c787b6f8a361ac5e49af1227 (patch)
treefba2f55f7c77c86c58b27495a3be67a9b5a19e28 /rssg
parenta53325f36b12384477b2f1735e897f6db99701c6 (diff)
downloadwww-2f79ffc9c4d6f200c787b6f8a361ac5e49af1227.tar.gz
www-2f79ffc9c4d6f200c787b6f8a361ac5e49af1227.zip
fix?
Diffstat (limited to 'rssg')
-rwxr-xr-xrssg5
1 files changed, 3 insertions, 2 deletions
diff --git a/rssg b/rssg
index 7f5373cb..e21974f4 100755
--- a/rssg
+++ b/rssg
@@ -141,8 +141,9 @@ date_rfc_822() {
141 141
142 142
143feed_date_rfc_822() { 143feed_date_rfc_822() {
144 if date --version >/dev/null 2>&1; then 144 if date --version >/dev/null 2>&1; then
145 date -d "$(echo "$1")" --rfc-822 145 k="$($1)"
146 date -d "$(echo "$k")" --rfc-822
146 else 147 else
147 date -j '+%a, %d %b %Y %H:%M:%S %z' \ 148 date -j '+%a, %d %b %Y %H:%M:%S %z' \
148 "$(echo "$1"| tr -cd '[:digit:]')0000" 149 "$(echo "$1"| tr -cd '[:digit:]')0000"