Fix for a misunderstanding of datetime kinds.