summarylogtreecommitdiffstats
path: root/dateformat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dateformat.patch')
-rw-r--r--dateformat.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dateformat.patch b/dateformat.patch
new file mode 100644
index 000000000000..c0bf524ed95a
--- /dev/null
+++ b/dateformat.patch
@@ -0,0 +1,13 @@
+diff --git a/dnssec-reverb b/dnssec-reverb
+index ad133ad..3eafb0b 100755
+--- a/dnssec-reverb
++++ b/dnssec-reverb
+@@ -160,7 +160,7 @@ sign()
+ EXPIRE=$EXPIRE_ABS
+ fi
+ $SIGNZONE_CMD "$_SIGN_PARAM" -e "$EXP" -o "$ZONE" -f "$ZONEFILE.signed" "$ZONEFILE.tmp" "$KEYDIR/$ZSK" "$KEYDIR/$KSK" $KSS || Fatal "failed to sign zone" && $CHECKZONE_CMD $ZONE $ZONE
+- TT=$EXPIRE; date -r "$TT" '+%Y/%m/%d %H:%M:%S' > "$KEYDIR/$ZSK.expire"
++ TT=$EXPIRE; date -d "@$TT" '+%Y/%m/%d %H:%M:%S' > "$KEYDIR/$ZSK.expire"
+ rm "$ZONEFILE.tmp"
+ eval "$RELOAD_CMD"
+ }