Browse Source

Check isoFormattedValue on getFormattedValue and format only if has a value.

pull/4161/head
Halil İbrahim Kalkan 6 years ago
parent
commit
ed3b731015
  1. 5
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js

5
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/bootstrap/dom-event-handlers.js

@ -95,13 +95,16 @@
}
},
getFormattedValue: function (isoFormattedValue) {
if (!isoFormattedValue) {
return isoFormattedValue;
}
return luxon
.DateTime
.fromISO(isoFormattedValue, {
locale: abp.localization.currentCulture.name
}).toLocaleString();
},
getOptions($input){ //$input may needed if developer wants to override this method
getOptions($input) { //$input may needed if developer wants to override this method
return {
todayBtn: "linked",
autoclose: true,

Loading…
Cancel
Save