diff options
Diffstat (limited to 'rssg')
-rwxr-xr-x | rssg | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -119,8 +119,7 @@ rel_to_abs_urls() { | |||
119 | 119 | ||
120 | 120 | ||
121 | date_rfc_822() { | 121 | date_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 |