Fix Date in function update()