mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 08:30:37 -04:00
- Fix to work with trac 1.0 - Fix file permission PR: ports/181307 Submitted by: Hung-Yi Chen <gaod hychen.org> (maintainer)
13 lines
747 B
Python
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) )
|