Now also restoring the current time on undo/redo.