[AAE-7072] - added utc time for date time widget to avoid changing ti… (#7469)

* [AAE-7072] - added utc time for date time widget to avoid changing time on different timezones

* [AAE-7072] - fixed parsing when override is not added
This commit is contained in:
Vito
2022-01-26 15:24:53 +00:00
committed by GitHub
parent 3d544beff3
commit 8a9a9a6fdc
5 changed files with 10 additions and 11 deletions

View File

@@ -136,7 +136,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
displayFormat = this.overrideDisplayFormat ? this.overrideDisplayFormat : displayFormat;
if (date && date.format) {
return date.format(displayFormat);
return date.utc().local().format(displayFormat);
} else {
return '';
}