UpdateTime API called to update Localstorage.