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

174
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
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