A very #MySoCalledSudoLife day.​ This morning I:

  • Created my first cron job (I will look into systemd timers this weekend, just in case)

  • I bought a Heltec v3 kit - so I can try off-grid mesh communication when I'm at my parents' in Italy later this month

  • Thanks for all your help and advice with cron jobs! I really appreciate 🙏

    I just learned a couple of minutes ago that "CRON jobs in general run in UTC time" - so 9pm for my cron job means 11pm Paris time 

    I guess I'll find out tomorrow morning if it worked (I'm too tired now to tweak it) 🥲

    Good night Fedi friends!

    @elena

    In most cases, cron follows the system's time zone.

    More info here:
    https://cronjob.live/docs/cron-timezones by recurohq
    https://crontab.io/timezone-converter by johnsorrentino

    CRON_TZ https://www.man7.org/linux/man-pages/man5/crontab.5.html

    #cron #unix #timezone

    Cron Timezones - Complete Guide to Timezone Handling | Cronjob.live

    Master cron timezone handling, DST issues, and best practices. Learn how to handle timezone complexity in cron job scheduling.

    Cronjob.live
    @gvlx thank you! It’s installed on a VPS hosted in Lithuania… it hasn’t run yet so I’m guessing that it either doesn’t work (my code) or it’s on UTC time. I guess I’ll find out tomorrow morning 😅
    @elena Check the docs, you can force the timezone per line
    @gvlx it worked at 11pm CET (9pm UTC time). So I just tweaked the code, subtracting 2 hours. Very exciting. The next scheduled run will be at 9am my time on Monday...