[fix bug 778865] Fix time reset when event save fails
Merge pull request #315 from johngian/778865

[fix bug 778865] Fix time reset when event save fails