浏览代码

Don't zero-pad day of the month.

Karsten Loesing 10 年之前
父节点
当前提交
749ead79ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: