Commit 1edbba27 authored by bahadircyildiz's avatar bahadircyildiz

FIX rref #5239, refs GH-92. Datepicker formatting improved on stringifying.

parent b36896d4
......@@ -568,13 +568,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
status: {opened: false},
open: function ($event) {
this.status.opened = true;
scope.model[k] = Moment(scope.model[k], "DD.MM.YYYY").toDate();
},
format: 'dd.MM.yyyy',
onSelect: function () {
var tempDate = angular.copy(scope.model[k]);
tempDate = Date.parse(tempDate, "dd.MM.yyyy");
scope.model[k] = tempDate;
//scope.model[k] = angular.copy(generator.dateformatter(scope.model[k]));
scope.model[k] = angular.copy(generator.dateformatter(scope.model[k]));
}
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment