Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

252
Views
XDSoft Datetimepicker Decrements Time 1 Hour After Input Field Loses Focus

I am using the XDSoft Datetimepicker. I can choose a datetime, but when I click out of the input field, the hour of the time decrements by one hour. Here is an example:

This is when I pick a datetime (successfully): step 1

And this is what is looks like immediately after choosing a datetime: step 2

Finally, this is what it looks like when the input loses focus, i.e. when I click outside of the input: step 3

Here is the javascript code that I use to set up the datetimepicker:

$("input[name='my_datetimepicker_input']").datetimepicker({

    format: 'Y/m/d h:i A',
    formatTime: 'g:i A',

    minDate: '-1970/01/01',
    step: 15,

    maxTime: '22:00',
});

The problem doesn't seem to happen when I switch the format from 24 time to 12 hour (AM/PM) time.

Any ideas what could be causing this and how to fix this?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!