Currently, I have a datepicker set with a timezone of +3 hours using the following configuration:
@Component({
selector: 'date-picker',
templateUrl: './date-picker.component.html',
styleUrls: ['./date-picker.component.scss'],
providers: [
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' },
{ provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE] },
{ provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS },
]
})
However, I am looking to adjust it so that it corresponds to a timezone of +0 hours from the provided value.
For example, if I input the date "2020-09-15:21:00" into the datepicker, instead of converting it to "2020-09-16:00:00" by adding 3 hours, I want it to remain as "2020-09-15:21:00". This is the issue at hand.