The app stores in the database the running apps and their dates. The timeline displays correctly what have been logged. The timeline is updated when you switch an app