I am having issues with time picker because it is showing me wrong time. The time is 2 hours behind
<ion-datetime type="datetime-local"
[pickerOptions]="customPickerOptionsTime"
[ngModelOptions]="{standalone: true}"
placeholder="Select time"
display-format="HH:mm"
[(ngModel)]="customTime"
picker-format="HH mm "
[max]="currentTime"
></ion-datetime>
async timePicker() {
this.customPickerOptionsTime = {
buttons: [{
text: 'Cancel',
handler: () => {
}
}, {
text: 'Save',
handler: (event) => {
console.log('Clicked Save!');
this.timeObj = event;
this.customTime = event;
console.log(this.timeObj);
}
}],
};
}