mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Set local timezone dropdown to rrule TZID value
This commit is contained in:
@@ -131,8 +131,9 @@ function($filter, $state, $stateParams, Wait, $scope, moment,
|
|||||||
|
|
||||||
$http.get('/api/v2/schedules/zoneinfo/').then(({data}) => {
|
$http.get('/api/v2/schedules/zoneinfo/').then(({data}) => {
|
||||||
scheduler.scope.timeZones = data;
|
scheduler.scope.timeZones = data;
|
||||||
scheduler.scope.schedulerTimeZone = _.find(data, (zone) => {
|
scheduler.scope.schedulerTimeZone = _.find(data, function(x) {
|
||||||
return zone.name === scheduler.scope.current_timezone.name;
|
let tz = $scope.schedule_obj.rrule.match(/TZID=\s*(.*?)\s*:/)[1];
|
||||||
|
return x.name === tz;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
scheduler.inject('form-container', false);
|
scheduler.inject('form-container', false);
|
||||||
|
|||||||
Reference in New Issue
Block a user