bala4901
(Markus Bala)
June 23, 2020, 5:50am
1
I found a funny issue in schedule.
Example:
The server is setup with UTC time.
But the client setup using Asia/jakarta locale.
When setting the time in schedule, it follow the time of Server (UTC) instead follow the client locale.
May I know, this is correct?
Best regards,
ced
(Cédric Krier)
June 23, 2020, 7:52am
2
What do you mean by “following”? Please could you give a specific example?
bala4901
(Markus Bala)
June 23, 2020, 11:10am
3
Apologize for not clear explain, Example:
I put the cron run every 1 days at 15 hour.
Next call is 2020-06-23 22:00:00
My time is Asia/Jakarta. Server timezone is UTC.
So, I need to set server time zone which is 15hrs so that it can as my expectation at every day 22hrs in Asia/Jakarta Time
ced
(Cédric Krier)
June 23, 2020, 11:28am
4
Indeed as they are simple integer field, they are not aware of client timezone.
I do not think we can change because:
we are not going to create a widget just for this special case
we can not use none UTC on server side as different servers with different timezone could schedule the cron
So I guess the best is to put an help text explaining it is in UTC.
bala4901
(Markus Bala)
June 23, 2020, 11:34am
5
Agree. might have some help text to somewhere to indicate the Cron is follow server Setting timezone.
ced
(Cédric Krier)
June 23, 2020, 11:35am
6
Or maybe we could add a timezone on ir.cron
which will be used to get the datetime when computing the next call. See Issue 9436: Add timezone on cron task - Tryton issue tracker
system
(system)
Closed
July 23, 2020, 11:35am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.