Hi everyone.
I have problems with timepicker and settings default time in there, the problem is that i am getting -2 hours. For example my current time is 14:46pm and i will get in timepicker 12:26pm. Here is my code which sets default time in timepicker:
time: String = new Date().toISOString();
todo: any = {
title: null,
date: this.date,
reminder: this.time
};
And this is the html
<ion-datetime name="reminder" displayFormat="h:mm" pickerFormat="h:mm A" [(ngModel)]="todo.reminder"></ion-datetime>