CalDAV - Incoming tasks do not get correct time zone #1453
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1453
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When syncing tasks with CalDAV with the Android Tasks app, the time zone user setting isn't getting respected. If I set the time in Tasks, Vikunja seems to interpret the time zone as GMT instead of my user setting in EST, so it appears in Vikunja as 5 hours earlier than it should be. However, the reverse seems to work fine: if I correct the time in Vikunja, it gets the correct local time in Tasks.
My server's
config.yml
'sservice.timezone
setting is set toGMT
, as it seems appropriate to match the server's timezone, so I'm not sure if maybe that's playing a part. But I would expect the user timezone to take precedence.I've been able to reproduce this issue in the Tasks app with both direct CalDAV integration as well as through DavX.
Vikunja Frontend Version
0.20.5
Vikunja API Version
0.20.4
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
No response
I observe this issue too, and it has already been reported: https://community.vikunja.io/t/time-zone-is-off-when-created-via-caldav-client/842
After looking into it, I think the problem can be solved on the Vikunja side:
Suppose you have the timezone set to CEST in both tasks.org and Vikunja. If you enter 17:00 as due date in tasks app, then it will be sent like
DUE;TZID=Europe/Berlin:20230402T170001
The problem arises when parsing the incoming VTODO: Vikunja ignores the TZID part and assumes 17:00 at UTC (which is 19:00 in Europe/Berlin). Maybe Vikunja should not ignore the TZID.
Fixed in
1cffef6908
That was a very quick turnaround, thanks!