fix datetime field in form