properly display date time in edit view