Fixed bug with rendering of datetime fields