Fixes date picker value that is posted

This commit is contained in:
Shannon
2013-08-13 11:34:27 +10:00
parent 50aa9d7144
commit 642c4d10fe

View File

@@ -16,7 +16,7 @@ angular.module("umbraco").controller("Umbraco.Editors.DatepickerController",
autoclose: true
}).on("changeDate", function (e) {
// When a date is clicked the date is stored in model.value as a ISO 8601 date
$scope.model.value = e.date.toISOString();
$scope.model.value = e.date.toIsoDateTimeString();
});
});