mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1516] added parsing on date check (#2301)
This commit is contained in:
@@ -115,7 +115,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
|
|||||||
parse(value: any, parseFormat: any): Moment {
|
parse(value: any, parseFormat: any): Moment {
|
||||||
let m = moment(value, parseFormat, true);
|
let m = moment(value, parseFormat, true);
|
||||||
if (!m.isValid()) {
|
if (!m.isValid()) {
|
||||||
m = moment(value);
|
m = moment(value, this.overrideDisplyaFormat);
|
||||||
}
|
}
|
||||||
if (m.isValid()) {
|
if (m.isValid()) {
|
||||||
// if user omits year, it defaults to 2001, so check for that issue.
|
// if user omits year, it defaults to 2001, so check for that issue.
|
||||||
|
Reference in New Issue
Block a user