change pattern for datetime in update method