Why is there a 4 hour offset when retrieving task dates (without time) from the API?
Colleagues A, B and C create 1 task each with the same due date 30/11/2020 (without time). Colleague A lives in GMT+0, B in GMT+1 and C in GMT+8. The timestamps we get from the API are:
A's task (set in GMT+0)
1606708800000 => 30/11/2020 04:00:00 GMT+0
B's task (set in GMT+1)
1606705200000 => 30/11/2020 03:00:00 GMT+0
C's task (set in GMT+8)
1606680000000 => 29/11/2020 20:00:00 GMT+0
Notice the 4h offset, as if dates were set in GMT+4.
This doesn't happen if the time is set with the date. For example, setting 30/11/2020 9am on GMT+8 will return:
1606698000000 => 30/11/2020 01:00:00 GMT+0
which is the correct value.