Answer the question
In order to leave comments, you need to log in
How to set to remove the timezone from in value?
https://mariomka.github.io/vue-datetime/
in value the format is:
2018-09-05T06:41:28.307Z
need
2018-09-05 6:41
format="yyyy-MM-dd HH:mm" - this line does not affect the timezone, I did not find where to turn off the timezone accounting
Answer the question
In order to leave comments, you need to log in
let dateFormat = new Date(dateTime);
I had to overturn the add method in vue and additionally tell it that this is a date and not a string
<datetime
type="datetime"
v-model="dispatch_time"
:min-datetime="new Date().toISOString().slice(0, 19).replace('T', ' ')"
:placeholder="datetimeLabel"
format="yyyy-MM-dd HH:mm"
@input="updateDatetime" />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question