vue-datetime
vue-datetime copied to clipboard
Populated input shows wrong date
When I populate the input with a database value, it shows up as the day before. I give it a valuedate of "2020-05-25T00:00:00.000Z" and then the input value computes as "May 24, 2020." In the database it shows as May 25th so the localization doesn't really make sense.
Are you by any chance in a timezone that is in negative UTC (e.g. America)? If so, then that would explain it as the "2020-05-25T00:00:00.000Z" is in UTC, but if you are in some UTC-X timezone, then the date in your browser shows X hours earlier than 2020-05-25 00:00, so 2020-05-24 (24-X):00.