From 1ba7fb9621949da8ea2acf9ec14777fc4aeecba6 Mon Sep 17 00:00:00 2001 From: zzz Date: Tue, 17 Apr 2018 13:28:47 +0000 Subject: [PATCH] BuildTime: Update, add to cmd line tools --- core/java/src/net/i2p/time/BuildTime.java | 6 ++---- core/java/src/net/i2p/util/CommandLine.java | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/java/src/net/i2p/time/BuildTime.java b/core/java/src/net/i2p/time/BuildTime.java index 852ff0d4d..88df963b9 100644 --- a/core/java/src/net/i2p/time/BuildTime.java +++ b/core/java/src/net/i2p/time/BuildTime.java @@ -34,10 +34,10 @@ public class BuildTime { private static final long _latestTime; private static final long YEARS_25 = 25L*365*24*60*60*1000; /** update this periodically */ - private static final String EARLIEST = "2017-10-11 12:00:00 UTC"; + private static final String EARLIEST = "2018-04-17 12:00:00 UTC"; // fallback if parse fails ticket #1976 // date -d 201x-xx-xx +%s - private static final long EARLIEST_LONG = 1507694400 * 1000L; + private static final long EARLIEST_LONG = 1523937600 * 1000L; static { // this is the standard format of build.timestamp as set in the top-level build.xml @@ -146,7 +146,6 @@ public class BuildTime { } } -/**** public static void main(String[] args) { long date = getEarliestTime(); System.out.println("Earliest date: " + new Date(date)); @@ -159,5 +158,4 @@ public class BuildTime { date = getLatestTime(); System.out.println("Latest date: " + new Date(date)); } -****/ } diff --git a/core/java/src/net/i2p/util/CommandLine.java b/core/java/src/net/i2p/util/CommandLine.java index 3e857e49c..f5ac357b5 100644 --- a/core/java/src/net/i2p/util/CommandLine.java +++ b/core/java/src/net/i2p/util/CommandLine.java @@ -29,6 +29,7 @@ public class CommandLine { "net.i2p.data.Base32", "net.i2p.data.Base64", "net.i2p.data.PrivateKeyFile", + "net.i2p.time.BuildTime", "net.i2p.util.Addresses", "net.i2p.util.ConvertToHash", "net.i2p.util.EepGet",