You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example let's say we insert a task group with initialStartdate23.05.2024:00:30 in frontend -> to utc its 22.05.2024:22:30
Then we compare the initialStartDate::date with the date from NOW()::date but ::date just removes the time, so the initialStartDate becomes 22.05.2024. Now we compare it with the current date on lets say 22.05.2024:14:30 in our timezone which is 22.05.2024:12:30 in UTC. The date will be truncated so we compare with `22.05.2024. So the scheduler will actually create assignments for this task group despite the initial start date still being in the future.
The text was updated successfully, but these errors were encountered:
Solved by removing the date cast and also comparing times and always storing task assignments created_at as if they happened at the beginning of the day.
For example let's say we insert a task group with
initialStartdate
23.05.2024:00:30
in frontend -> to utc its22.05.2024:22:30
Then we compare the
initialStartDate::date
with the date fromNOW()::date
but::date
just removes the time, so theinitialStartDate
becomes22.05.2024
. Now we compare it with the current date on lets say22.05.2024:14:30
in our timezone which is22.05.2024:12:30
in UTC. The date will be truncated so we compare with `22.05.2024. So the scheduler will actually create assignments for this task group despite the initial start date still being in the future.The text was updated successfully, but these errors were encountered: