projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a850ad9
)
Make sure month numbers are padded with a leading zero
author
Magnus Hagander
<magnus@hagander.net>
Tue, 6 Dec 2011 08:49:55 +0000
(09:49 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Tue, 6 Dec 2011 08:49:55 +0000
(09:49 +0100)
Per report from Alvaro
pgweb/search/views.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/search/views.py
b/pgweb/search/views.py
index cf6c50610ccbd79fa46155fca538bf86c0f8a0ec..265dfeb919a72a3e397d0a4ac05bad7cfcd588fc 100644
(file)
--- a/
pgweb/search/views.py
+++ b/
pgweb/search/views.py
@@
-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],