ports/www/trac-watchlist/files/patch-tracwatchlist_util.py
William Grzybowski 84c5016f4c www/trac-watchlist: fix for trac 1.0
- Fix to work with trac 1.0
- Fix file permission

PR:		ports/181307
Submitted by:	Hung-Yi Chen <gaod hychen.org> (maintainer)
2013-08-15 11:10:05 +00:00

13 lines
747 B
Python

--- tracwatchlist/util.py.orig 2013-08-15 04:15:56.000000000 +0800
+++ tracwatchlist/util.py 2013-08-15 04:16:05.000000000 +0800
@@ -198,8 +198,8 @@
try:
from babel.dates import get_datetime_format, get_date_format, get_time_format
def datetime_format(format='medium', locale=LC_TIME):
- time_format = unicode(get_time_format(format, locale))
- date_format = unicode(get_date_format(format, locale))
+ time_format = unicode(get_time_format(format, locale=locale))
+ date_format = unicode(get_date_format(format, locale=locale))
return convert_LDML_to_MySQL( get_datetime_format(format, locale)\
.replace('{0}', time_format)\
.replace('{1}', date_format) )