mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4721] Fix Material Datetime Picker date format (#4893)
This commit is contained in:
committed by
Eugenio Romano
parent
4d0c98d753
commit
e03799e038
@@ -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": [
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user