question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Date in display is inaccurate

See original GitHub issue

Control:

                        <date-picker wrapper-class="has-icons-right"
                            input-class="input is-fullwidth{{ $errors->has('solution_date') ? ' is-danger' : '' }}"
                            name="solution_date"
                            format="yyyy-MM-dd"
                            v-model="solutionDate.date"></date-picker>

Vue:

        solutionDate: {
            date: '2017-06-26'
        }

Result in the UI: 2017-06-25

What’s going wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
charliekasselcommented, Oct 18, 2017

As per my comment above - when you construct a Date object with a YYYY-MM-DD string it will create it in UTC not local time. These are the quirks of javascript’s Date object and not this library.

2reactions
Zaskodacommented, Oct 2, 2017

I am experiencing this as well. version 0.9.16

Read more comments on GitHub >

github_iconTop Results From Across the Web

The display of date formats in Google Chrome is incorrect for ...
The display of date formats in Google Chrome is incorrect for non-American English speakers. Last updated: Oct 26, 2020.
Read more >
Why do web sites display dates in an inaccurate ...
Many sites will display dates or times in an inaccurate representation like 1 year ago instead of just displaying the actual date.
Read more >
wrong date on privacy dashboard, it shows Oct. 8,2019
Step 1: Click on the clock in the taskbar to open the flyout, and then click Date and time settings link. Step 2:...
Read more >
Why am I getting the wrong Date Format? - ambascol.org
To change the date format from your Macintosh, first make sure that Safari has been closed by quitting the application. Then click on...
Read more >
WebV: incorrect date format display for some dates
Workaround date.format.* values in vxws.properties conform to java format; setting the month value to display alphabetic abbreviation rather ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found