aboutsummaryrefslogtreecommitdiff
path: root/rssg
diff options
context:
space:
mode:
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"