gnunet-svn
[Top][All Lists]
Advanced

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

[www] branch master updated: guybrush threepwood meets macgyver on a bad


From: gnunet
Subject: [www] branch master updated: guybrush threepwood meets macgyver on a bad day, now there's a hopefully working hack for what didn't work.
Date: Mon, 04 Nov 2019 18:05:25 +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 a53325f  guybrush threepwood meets macgyver on a bad day, now there's 
a hopefully working hack for what didn't work.
a53325f is described below

commit a53325f36b12384477b2f1735e897f6db99701c6
Author: ng0 <address@hidden>
AuthorDate: Mon Nov 4 17:01:12 2019 +0000

    guybrush threepwood meets macgyver on a bad day, now there's a hopefully 
working hack for what didn't work.
---
 rssg | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/rssg b/rssg
index 05ca943..7f5373c 100755
--- a/rssg
+++ b/rssg
@@ -140,6 +140,16 @@ date_rfc_822() {
 }
 
 
+feed_date_rfc_822() {
+         if date --version >/dev/null 2>&1; then
+             date -d "$(echo "$1")" --rfc-822
+       else
+           date -j '+%a, %d %b %Y %H:%M:%S %z' \
+                "$(echo "$1"| tr -cd '[:digit:]')0000"
+       fi
+}
+
+
 render_items() {
        while read -r i
        do render_item "$1" "$2" "$i"
@@ -200,7 +210,7 @@ render_feed() {
 <language>en</language>
 <description>'"$description"'</description>
 <link>'"$base_url"'/</link>
-<lastBuildDate>'"$(date_rfc_822 date)"'</lastBuildDate>
+<lastBuildDate>'"$(feed_date_rfc_822 date)"'</lastBuildDate>
 '"$(cat)"'
 </channel></rss>'
 }

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



reply via email to

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