[tor-commits] [tor/master] Don't zero-pad day of the month.

nickm at torproject.org nickm at torproject.org
Sat Feb 15 05:08:44 UTC 2014


commit 749ead79ad2edbfbdc4b200529fdf7aff17df5e1
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Sat Feb 8 12:03:27 2014 +0100

    Don't zero-pad day of the month.
---
 src/config/mmdb-convert.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/mmdb-convert.py b/src/config/mmdb-convert.py
index b89ab0b..21a82ba 100644
--- a/src/config/mmdb-convert.py
+++ b/src/config/mmdb-convert.py
@@ -422,7 +422,7 @@ def write_geoip_file(filename, metadata, the_tree, dump_item, fmt_item):
 
     build_epoch = metadata[0].map['build_epoch'].int_val()
     fobj.write("# Last updated based on %s Maxmind GeoLite2 Country\n"%
-               time.strftime('%B %d %Y', time.gmtime(build_epoch)))
+               time.strftime('%B %-d %Y', time.gmtime(build_epoch)))
 
     unwritten = None
     for entry in entries:





More information about the tor-commits mailing list