Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

174
Visualizações
jQuery ui range slider timestamps gives wrong value

I have created a range slider of timestamps. When I move the slider from left to right, I am getting wrong timestamp for Max End value. Which actually should be same as max of slider.

For example: min: 1609519800000 Friday, 1 January 2021 4:50:00 PM max: 1634801083000 Thursday, 21 October 2021 7:24:43 AM

I have moved the slider from left to some position towards right, start i.e ui[0] got updated to 1612824571000 Monday, 8 February 2021 10:49:31 PM end i.e ui[1] 1634808244000 Thursday, 21 October 2021 9:24:04 AM

As u see ui[1] should'nt have updated in this case.

Requesting you to help me on this.

Thanks

initializeSlider() {
    $(this.template.querySelector("div")).slider({
        range: true,
        min: this.minVal, //1609519800000
        max: this.maxVal, //1634801083000
        step: 86400,
        values: [this.start, this.end], //same as min and max initial
        stop: (event, ui) => { 
            console.log('  this.start :'+  ui.values[0]);
            console.log('  this.end :'+  ui.values[1]);
        }
    });
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda