As the Pi doesn't have a real time clock there will need some way to keep the Pi in sync with the online service. This would need to be done on when "connecting for the first time" or "reconnecting" to the online service to keep any offline data as valid as possible.