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