aboutsummaryrefslogtreecommitdiff
path: root/rssg
diff options
context:
space:
mode:
Diffstat (limited to 'rssg')
-rwxr-xr-xrssg10
1 files changed, 8 insertions, 2 deletions
diff --git a/rssg b/rssg
index 2b526b95..641068f6 100755
--- a/rssg
+++ b/rssg
@@ -119,8 +119,14 @@ rel_to_abs_urls() {
119 119
120 120
121date_rfc_822() { 121date_rfc_822() {
122 date -j '+%a, %d %b %Y %H:%M:%S %z' \ 122 DATETEST=$(date -j | grep "invalid option")
123 "$(echo "$1"| tr -cd '[:digit:]')0000" 123 if test -n "$DATETEST"; then
124 date '+%a, %d %b %Y %H:%M:%S %z' \
125 "$(echo "$1"| tr -cd '[:digit:]')0000"
126 else
127 date -j '+%a, %d %b %Y %H:%M:%S %z' \
128 "$(echo "$1"| tr -cd '[:digit:]')0000"
129 fi
124} 130}
125 131
126 132