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

474
Visualizações
How to change time of a recurring Event time in fullcalendar 5

I'm using fullcalendar 5 and have some recurring weekly Events on a weekly calendar. The Events are initialized by the backend. I can change the times of those events via drag, resize, or with code, but when I go forward or back a week with the Prev/Next buttons, they revert to their prior time.

Is there a way to change a recurring event such that whatever is handling the repeat logic knows about it so that the new time is retained?

For changing with code, setStart() and setEnd() change the event on the page. But then prev/next does not retain the change. I start assign startTime and endTime values but that didn't help.

I got it to work by remove the event and adding a new one. Don't know if there's a more elegant solution.

let weekDay = '' + myEvent.start.getDay();
let startTime = myEvent.start.toTimeString().split(' ')[0];
let endTime =  myEvent.end.toTimeString().split(' ')[0];
let newEvent = { "start" : new Date(myEvent.start), 
  "end" : new Date(myEvent.end), 
  "startTime" : startTime, 
  "endTime" : endTime, 
  "daysOfWeek" : weekDay,
  "title" : "XYZZY", 
   "id" : "111",    
}; 
myEvent.remove();
this.addEvent(newEvent);

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