aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-04 08:13:31 +0000
committerng0 <ng0@n0.is>2019-11-04 08:13:31 +0000
commit1fc665964811a92c00cc5b67f804a12026bad108 (patch)
tree6d9dd0f1fa1d17fb5482d7a82a344ec7839b948e
parent3a7dc480b427220bf0a8527951e109dabbccc1a1 (diff)
downloadwww-1fc665964811a92c00cc5b67f804a12026bad108.tar.gz
www-1fc665964811a92c00cc5b67f804a12026bad108.zip
date v gnu date, attempt 1
-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