Fix date and time settings bug
When time mode is initially set to Manual from NTP,
NTP service is disabled and the NTP service is stopping
but not stopped, setting time will return an error.
There are no response messages to notify when
NTP is completely stopped.
To work around, a timeout is set to allow NTP to fully stop
before saving date/time changes.
https://github.com/openbmc/phosphor-time-manager/blob/master/README.md
Signed-off-by: Dixsie Wolmers <dixsiew@gmail.com>
Change-Id: Icb86dfe339a10567aecf9aedd9b0dd696937a398
diff --git a/app/configuration/controllers/date-time-controller.html b/app/configuration/controllers/date-time-controller.html
index d84d278..47c7ced 100644
--- a/app/configuration/controllers/date-time-controller.html
+++ b/app/configuration/controllers/date-time-controller.html
@@ -59,7 +59,7 @@
</div>
</fieldset>
<div class="time__submit-wrapper">
- <button type="button" class="btn btn-primary" ng-click="setTime()">Save settings</button>
+ <button type="button" class="btn btn-primary" ng-click="saveDateTimeSettings()">Save settings</button>
<button type="button" class="btn btn-secondary" ng-click="refresh()">Cancel</button>
</div>
</form>