Open pigeonfield opened 3 months ago
Here's my ugly workaround:
Essentially I'm parsing the UTC date as a local one (obtaining the correct one):
onChange(event: any) {
this.selectedValue = event;
this.selectedValue.startDate = moment(this.selectedValue.startDate.toDate().toISOString().substring(0, 23)); // new line
this.selectedValue.endDate = moment(this.selectedValue.endDate.toDate().toISOString().substring(0, 23)); // new line
console.log('on change event', event);
}
Versions
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
ISSUE: I am already getting local date time, instead of UTC time. So in my case (Europe/Vienna) I am actually getting +1h time when passing values further.
Stackblitz link If applicable, add stackblitz link.