Make sure month numbers are padded with a leading zero

Per report from Alvaro
This commit is contained in:
Magnus Hagander
2011-12-06 09:49:55 +01:00
parent a850ad94d2
commit f774b97c2a

View File

@ -181,7 +181,7 @@ def search(request):
'hits': [{
'list': h[0],
'year': h[1],
'month': h[2],
'month': "%02d" % h[2],
'msgnum': "%05d" % h[3],
'date': h[4],
'subject': h[5],