Bug fix for datepicker with offset time (#12847)

* https://github.com/umbraco/Umbraco-CMS/issues/12844

* remove "X" from ng-attr

Doing the test I killed the ng-if attr. But forgot it was there doing the commit

Co-authored-by: Lucas Bach Bisgaard <lom@novicell.dk>
This commit is contained in:
Lucas Bach Bisgaard
2022-09-23 14:36:02 +02:00
committed by GitHub
parent 68f9a1e68c
commit 4b39cfe913
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ function dateTimePickerController($scope, angularHelper, dateHelper, validationM
setDate(momentDate);
}
setDatePickerVal();
flatPickr.setDate($scope.model.value, false);
flatPickr.setDate($scope.model.datetimePickerValue, false);
}
}

View File

@@ -5,7 +5,7 @@
<div id="datepicker{{model.alias}}">
<umb-date-time-picker
ng-model="model.value"
ng-model="model.datetimePickerValue"
options="datePickerConfig"
on-setup="datePickerSetup(fpItem)"
on-change="datePickerChange(dateStr)">