mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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 '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user