﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16123	DateTimeField, DateField fails covert unicode date string with non-ascii characters	Gene	Claude Paroz <claude@…>	"it's old python bug - [python-Bugs-1280061]
in my case (ru_RU)


{{{
>>>from sys import platform
>>>from locale import setlocale, LC_ALL
>>>locale = 'russian' if platform == 'win32' else ''
>>>setlocale(LC_ALL, locale) #set locale for '%d %b %Y' convertion
}}}



{{{
>>>import time, datetime
>>>datetime.date(*time.strptime(u'31 мая 2011', '%d %b %Y')[:3]) # like in django/forms/fields.py, Line 362
ValueError: time data u'31 \u043c\u0430\u044f 2011' does not match format '%d %b %Y'
}}}
for strings contains non-ascii characters, you need 
{{{
'string'.encode('utf8')
}}}


{{{
>>>datetime.date(*time.strptime(u'31 мая 2011'.encode('utf8'), '%d %b %Y')[:3])
datetime.date(2011, 5, 31)
}}}"	Bug	closed	Forms	1.3	Normal	fixed	unicode, date, forms		Accepted	1	0	1	1	0	0
