[jToolkit-cvs] jToolkit/data dates.py,1.16,1.17
Brought to you by:
davidfraser,
friedelwolff
|
From: <dav...@us...> - 2004-03-10 07:24:22
|
Update of /cvsroot/jtoolkit/jToolkit/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18007 Modified Files: dates.py Log Message: handle unicode date formatting strings... Index: dates.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/data/dates.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** dates.py 10 Mar 2004 06:56:49 -0000 1.16 --- dates.py 10 Mar 2004 06:58:42 -0000 1.17 *************** *** 208,211 **** --- 208,213 ---- value = date(value.year, value.month, value.day, value.hour, value.minute, value.second) if hasattr(value,'strftime'): + if type(dateformat) == unicode: + dateformat = dateformat.encode('iso-8859-1') return value.strftime(dateformat) # handle null values |