Lines Matching full:date
2 * Controller for date-time
32 $scope.bmc.date =
33 new Date(data.data[timePath + 'bmc'].Elapsed / 1000);
35 $scope.bmc.date.setMilliseconds(0);
40 $scope.bmc.timezone = getUserTimezone($scope.bmc.date) + ' ' +
41 createOffset($scope.bmc.date);
45 $scope.host.date =
46 new Date(data.data[timePath + 'host'].Elapsed / 1000);
47 $scope.host.date.setMilliseconds(0);
48 $scope.host.timezone = getUserTimezone($scope.bmc.date) + ' ' +
49 createOffset($scope.bmc.date);
105 toastService.success('Date and time settings saved');
110 'Date and time settings could not be saved');
124 manualPromises.push(setBMCTime($scope.bmc.date.getTime() * 1000));
127 // the BMC date and time fields labeled "BMC and Host Time"
130 manualPromises.push(setHostTime($scope.bmc.date.getTime() * 1000));
134 // its own date and time field set from it.
136 manualPromises.push(setHostTime($scope.host.date.getTime() * 1000));
142 toastService.success('Date and time settings saved');
147 'Date and time settings could not be saved');
186 // Add the separate date and time objects and convert to Epoch time in
192 // Add the separate date and time objects and convert to Epoch time
196 function createOffset(date) { argument
198 var sign = (date.getTimezoneOffset() > 0) ? '-' : '+';
199 var offset = Math.abs(date.getTimezoneOffset());
204 function getUserTimezone(date) { argument
211 var ret = date.toLocaleTimeString('en-US', {timeZoneName: 'long'})
212 .replace(date.toLocaleTimeString('en-US'), '')