From fe118835078ef3807014495d8db2ae167db39466 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Fri, 27 Sep 2024 11:55:11 +0200 Subject: [PATCH 1/2] docs(cron): Add note about luxon timezones --- includes/javascript-crons-upsert.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/javascript-crons-upsert.mdx b/includes/javascript-crons-upsert.mdx index 8c3767bb335b99..a89c517975d2e2 100644 --- a/includes/javascript-crons-upsert.mdx +++ b/includes/javascript-crons-upsert.mdx @@ -149,6 +149,13 @@ The amount of time (in minutes) your job is allowed to run before it's considere The `tz` where your job is running. This is usually your server's timezone, (such as `America/Los_Angeles`). See [list of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Optional. + + +While `node-cron` allows to pass luxon timezones, you have to convert them to an IANA timezone when using Sentry (e.g. using `DateTime.local().zoneName`) + + + + `failureIssueThreshold`: _requires SDK version `8.7.0` or higher_ From 485ad788b997425af65a8b79750e0e73f5d3e0e3 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Mon, 30 Sep 2024 14:06:32 +0200 Subject: [PATCH 2/2] Update includes/javascript-crons-upsert.mdx Co-authored-by: Liza Mock --- includes/javascript-crons-upsert.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/javascript-crons-upsert.mdx b/includes/javascript-crons-upsert.mdx index a89c517975d2e2..c34f42e1790ada 100644 --- a/includes/javascript-crons-upsert.mdx +++ b/includes/javascript-crons-upsert.mdx @@ -151,7 +151,7 @@ The `tz` where your job is running. This is usually your server's timezone, (suc -While `node-cron` allows to pass luxon timezones, you have to convert them to an IANA timezone when using Sentry (e.g. using `DateTime.local().zoneName`) +`node-cron` allows you to pass luxon timezones, but you have to convert them to an IANA timezone when using Sentry (for example, using `DateTime.local().zoneName`).