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.

[8.x] Incorrect date time display

See original GitHub issue
[x] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe
  • flatPickr version : 4.6.9
  • Vue.js version : 2.6.12
  • Browser name and version : Chrome
  • This package version : 8.1.7

Current behavior When I set up the date-time value is “01/02, 20:00” 01 February but the Flatpick displays the wrong time. Flatpick displays the wrong time Here is my config

 monthConfig: {
        dateFormat: 'm/d, H:i',
        enableTime: true,
        time_24hr: true,
      }

date time value "01/02, 20:00"

Result image

Reproduction https://codesandbox.io/s/serene-cherry-hmqicb?file=/src/components/HelloWorld.vue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ankurk91commented, Mar 4, 2022

You are examining my patience today 😁 I can keep chatting with you like this and your issue won’t solve.

I have already solved your 2nd issue, any comment on that? Thanks.

0reactions
yogithesymbiancommented, Oct 12, 2022

i only know dateFormat: 'Y-m-d h:m:i', could you gimme a reference to similar properties what i see in flat-picker use altFormat: 'j F Y - h:m K', k as am pm , and i only know i as am pm . i think its different .

i have default time (initial date) 2022-10-12T03:52:50.000Z and then reformat to humanReadAble with moment format = 'D MMMM YYYY - hh:mm A' so how about

        altFormat: 'j F Y - h:m K',
        dateFormat: 'Y-m-d h:m:i', // these time is wrong format and i dunno how

if didnt reformat , the time result is wrong gmt.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Date and Time are Wrong or Flashing on Poly IP Phones
Symptom. Your Poly IP phone displays a flashing or incorrect date and time. ... Back all the way out to the main screen...
Read more >
iPhone Showing Wrong Time and Date: How to Fix? - Techbout
iPhone can end up showing wrong Time and Date due to incorrect Time Zone Settings, Location Services being disabled and other reasons.
Read more >
Is Your Android Phone Showing the Wrong Time? Here's How ...
Go to Settings > General management or System > Date and time and turn the Automatic date and time button off and then...
Read more >
iPhone or iPad Showing Wrong Time? Fix it Easily, Here is How
Fixing Wrong Date & Time Showing on iPhone or iPad · Open the “Settings” app and go to “General”, then to “Date &...
Read more >
How to Fix Incorrect Date or Time With Windows Clock
Press the Windows Key + S keys and type in Date and click on Date & Time. You can also go to Settings...
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