dwqs / v2-datepicker

A simple datepicker component based Vue 2.x: https://dwqs.github.io/v2-datepicker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug when manually select data range

cosimolemma opened this issue · comments

Hi,
when I try to select manually from the calendar a range the dates are subtracted of a day.

Example in DD/MM/YYYY
Range: 01/02/2018 - 16/02/2018

I get this values in the v-model variable:
Range[0] => 2018-01-31T23:00:00.000Z
Range[1] => 2018-02-15T23:00:00.000Z

No problem, instead, when I use picker options.

Bug?

commented

@cosimolemma Can you show me the code?

@dwqs just solved. Thank you.
I didn't notice the "Z" in the timestamp meaning UTC timezone. It was sufficient to perform a conversion to my timezone. Thanks