fix(event) Fixed time changing when event was edited and also fixed a problem caused by the previous commit