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