Explorar o código

Don't zero-pad day of the month.

Karsten Loesing %!s(int64=10) %!d(string=hai) anos
pai
achega
749ead79ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/config/mmdb-convert.py

+ 1 - 1
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: