1.0-stable: merge from 0.12-stable the `to_datetime()` changes from #10863
Authored by: cboos 2012-10-07
Parent: [r11399]
Child: [r11401]