Timezone option for Scheduled Tasks

What timezone format do I need to use for task when creating it? For example I want to run task in ukranian timezone, (UTC+2) what am I supposed to put in? A bit confused because all the time here like different types and kinds of timezones that you need to provide...
Solution:
First of all, it should be noted that timezone only applies if you provide a cron pattern for the pattern option Furthermore, the plugin is mostly just a tiny wrapper around https://bullmq.io. Bullmq passes that timezone, along with the pattern, to https://github.com/harrisiirak/cron-parser which actually handles it. I find it a bit weird that you're asking about UTC+2 because according to https://www.timeanddate.com/worldclock/ukraine the proper timezone is UTC+3 (regardless in fact of whether this is the occupied area or not, but fuck russia, freedom for 🇺🇦 and all that) ...
BullMQ - Background Jobs processing and message queue for NodeJS
BullMQ is a fast and robust background job processing library for Redisâ„¢
GitHub
GitHub - harrisiirak/cron-parser: Node.js library for parsing cront...
Node.js library for parsing crontab instructions. Contribute to harrisiirak/cron-parser development by creating an account on GitHub.
Time in Ukraine
Ukraine time now. Ukraine time zone and map with current time in the largest cities.
TimeZoneDB
TimeZoneDB
Provides world time zone database download and API access.
Jump to solution
3 Replies
Solution
Favna
Favna•6mo ago
First of all, it should be noted that timezone only applies if you provide a cron pattern for the pattern option Furthermore, the plugin is mostly just a tiny wrapper around https://bullmq.io. Bullmq passes that timezone, along with the pattern, to https://github.com/harrisiirak/cron-parser which actually handles it. I find it a bit weird that you're asking about UTC+2 because according to https://www.timeanddate.com/worldclock/ukraine the proper timezone is UTC+3 (regardless in fact of whether this is the occupied area or not, but fuck russia, freedom for 🇺🇦 and all that) Either way, the timezone notation for Ukraine is Europe/Kyiv, see also https://timezonedb.com/time-zones/Europe/Kyiv In general, the timezone that is used is the one that the bot has from the system hosting it.
BullMQ - Background Jobs processing and message queue for NodeJS
BullMQ is a fast and robust background job processing library for Redisâ„¢
GitHub
GitHub - harrisiirak/cron-parser: Node.js library for parsing cront...
Node.js library for parsing crontab instructions. Contribute to harrisiirak/cron-parser development by creating an account on GitHub.
Time in Ukraine
Ukraine time now. Ukraine time zone and map with current time in the largest cities.
TimeZoneDB
TimeZoneDB
Provides world time zone database download and API access.
secre
secreOP•6mo ago
In Ukraine we have that thing when we change our timezone to UTC+3 (from UTC+2) in summer, and then back to UTC+2 in October iirc. Thanks for detailed info on that topic!
Favna
Favna•6mo ago
that's called daylight savings time, or DST, a lot of countries around the world do it.
Want results from more Discord servers?
Add your server