﻿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
16888	USE_L10N and microseconds	anonymous	Claude Paroz	"Hello,

I have a problem when I'm using ""USE_L10N = True"" and ""DateTimeField"" eg in auth.User model. 
I can't save the form, because it contains field ""last_login"" with the time including microseconds. These are defined in DATETIME_INPUT_FORMATS, but only in global_settings.py, not in the formats directory.

django.conf.global_settings:


{{{
DATETIME_INPUT_FORMATS = (
    '%Y-%m-%d %H:%M:%S',
    '%Y-%m-%d %H:%M:%S.%f',  # OKAY
    ...
}
}}}

django.conf.locale.en.formats:


{{{
DATETIME_INPUT_FORMATS = (
    '%d.%m.%Y %H:%M:%S',
    '%d.%m.%Y %H:%M',       # '25.10.2006 14:30'
    '%d.%m.%Y',             # '25.10.2006'
    '%Y-%m-%d %H:%M:%S',    # '2006-10-25 14:30:59'
    '%Y-%m-%d %H:%M',       # '2006-10-25 14:30'
    '%Y-%m-%d',             # '2006-10-25'
)
}}}

Here is "".%f"" missing.

Now I have my own formats directory, where I add the "".%f"" to the locales ​what needs my application. But I think it's not very elegant solution.


Thank you
Ross
"	Bug	closed	Internationalization	dev	Normal	fixed		hv@…	Accepted	0	0	0	0	0	0
