Correct clear/undo timestamp translation

Postpone the translation of timestamp for clear/undo events, so the events are applied correctly.