[ADF-4721] Fix Material Datetime Picker date format (#4893)

This commit is contained in:
davidcanonieto
2019-07-02 22:05:11 +01:00
committed by Eugenio Romano
parent 4d0c98d753
commit e03799e038
2 changed files with 2 additions and 2 deletions

View File

@@ -441,7 +441,7 @@
"dateValues":{ "dateValues":{
"defaultDateFormat": "mediumDate", "defaultDateFormat": "mediumDate",
"defaultDateTimeFormat": "MMM d, y, H:mm", "defaultDateTimeFormat": "MMM d, y, H:mm",
"defaultLocale": "en-US" "defaultLocale": "en"
}, },
"files": { "files": {
"excluded": [ "excluded": [

View File

@@ -68,7 +68,7 @@ export class CardViewDateItemComponent implements OnInit {
this.dateAdapter.setLocale(locale); this.dateAdapter.setLocale(locale);
}); });
(<MomentDateAdapter> this.dateAdapter).overrideDisplayFormat = this.dateFormat; (<MomentDateAdapter> this.dateAdapter).overrideDisplayFormat = 'MMM DD';
if (this.property.value) { if (this.property.value) {
this.valueDate = moment(this.property.value, this.dateFormat); this.valueDate = moment(this.property.value, this.dateFormat);