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

173
Visualizações
hourly cron task overlapping on 2 days

I have to write some cron expressions from a firebase schedule function. As Google's servers aren't in the same timezone as me I will have to convert my existing expressions. (from UTC+2 to UTC-5). Here is an example of one of my expressions: 0 9-17 * * 1-5 - from monday to friday at minute 0 from 9:00 to 17:00

How can I convert this so it will run at this time in UTC+2 when the server is in UTC-5

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Because UTC+2 to UTC-5 is 7 hours backwards you should take the time 7 hours backwards:

0 2-10 * * 1-5
about 4 years ago · Juan Pablo Isaza Relatório

0

When we look at the Firebase Schedule Function documentation found documented here:

https://firebase.google.com/docs/functions/schedule-functions

we find a section called Write a scheduled function. In there we find that when we code:

functions.pubsub.schedule("<CRON String">)

we can add a timeZone setting. For example:

functions.pubsub.schedule("<CRON String">).timeZone('America/New_York')

What this means to us is that we can set a specific time zone against which our CRON intervals will be evaluated. According to the documentation, the default time zone is utc.

about 4 years ago · Juan Pablo Isaza Relatório
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