Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

254
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda