﻿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
17134	Wrong parsing of microseconds in !BaseTemporalField.to_python	Aymeric Augustin	Cliff Dyer	"Lines 345-348 of `django/forms/filelds.py` read:
{{{
                            datetime_str, usecs_str = value.rsplit('.', 1)
                            usecs = int(usecs_str)
                            dt = datetime.datetime.strptime(datetime_str, format[:-3])
                            return dt.replace(microsecond=usecs)
}}}

This only works if there are exactly 6 digits after the dot.

I suggest something along the lines of `usecs = int(usecs_str[:6].ljust(6, '0'))`.
"	Bug	closed	Forms	dev	Normal	fixed			Accepted	1	0	0	0	1	0
