gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[www] branch master updated: date v gnu date, attempt 1


From: gnunet
Subject: [www] branch master updated: date v gnu date, attempt 1
Date: Mon, 04 Nov 2019 09:16:21 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository www.

The following commit(s) were added to refs/heads/master by this push:
     new 1fc6659  date v gnu date, attempt 1
1fc6659 is described below

commit 1fc665964811a92c00cc5b67f804a12026bad108
Author: ng0 <address@hidden>
AuthorDate: Mon Nov 4 08:13:31 2019 +0000

    date v gnu date, attempt 1
---
 rssg | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/rssg b/rssg
index 2b526b9..641068f 100755
--- a/rssg
+++ b/rssg
@@ -119,8 +119,14 @@ rel_to_abs_urls() {
 
 
 date_rfc_822() {
-       date -j '+%a, %d %b %Y %H:%M:%S %z' \
-       "$(echo "$1"| tr -cd '[:digit:]')0000"
+        DATETEST=$(date -j | grep "invalid option")
+       if test -n "$DATETEST"; then
+            date '+%a, %d %b %Y %H:%M:%S %z' \
+                "$(echo "$1"| tr -cd '[:digit:]')0000"
+        else
+           date -j '+%a, %d %b %Y %H:%M:%S %z' \
+                "$(echo "$1"| tr -cd '[:digit:]')0000"
+        fi
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]