diff options
-rwxr-xr-x | tools/fetchallcerts.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/fetchallcerts.py b/tools/fetchallcerts.py index 66fde74..f9c2683 100755 --- a/tools/fetchallcerts.py +++ b/tools/fetchallcerts.py @@ -17,6 +17,7 @@ from certtools import * import zipfile import os import time +from datetime import datetime parser = argparse.ArgumentParser(description='') parser.add_argument('baseurl', help="Base URL for CT server") @@ -60,7 +61,7 @@ try: except IOError: oldsth = None -sth_timestamp = datetime.datetime.fromtimestamp(sth["timestamp"]/1000) +sth_timestamp = datetime.fromtimestamp(sth["timestamp"]/1000) since_timestamp = time.time() - sth["timestamp"]/1000 print "Log last updated %s, %d seconds ago" % (sth_timestamp.ctime(), since_timestamp) |