parameterized-scheduler icon indicating copy to clipboard operation
parameterized-scheduler copied to clipboard

Timezone for cron config

Open jsaulalonso opened this issue 7 years ago • 6 comments

If I try to set timezone in cron config (as non-parametrized cron config): TZ=Europe/Madrid 34 13 * * * % VAR=value I get a java exception trying to apply job config. How could I set timezone ¡? (Difference between my timezone and default one (UTC) is variable)

jsaulalonso avatar Jun 25 '18 14:06 jsaulalonso

Variable difference in timezone? ouch. Try out the more up-to-date fork: https://github.com/jenkinsci/parameterized-scheduler-plugin

jwmach1 avatar Jul 07 '18 12:07 jwmach1

I recently installed the jenkins plugin and if I try such a setting, it fails eg: "TZ=UTC"

Error: Invalid input: "TZ=UTC": line 1:1: unexpected char: 'T'

chefren avatar Aug 03 '18 05:08 chefren

Can you confirm if the time in the settings will always be UTC, or will it be local to the jenkins Master?

chefren avatar Aug 03 '18 05:08 chefren

I have the same question. Short of adding support for TZ, could you confirm how this job decides which timezone to base the schedule on?

mojavelinux avatar May 02 '19 20:05 mojavelinux

Any update on this?

Edit:

Check here:

https://github.com/jenkinsci/parameterized-scheduler-plugin/pull/47

serafeimgr avatar Mar 30 '21 14:03 serafeimgr

update?

smartin-qb avatar Feb 07 '24 16:02 smartin-qb