Fixed a different error with datetime-local. Tests updated