fix time in edit field