appstate: save timestamp