Skip to content

Add timezone when assigning start/end time#1460

Open
mschilli87 wants to merge 2 commits intopimutils:masterfrom
mschilli87:issue-1459
Open

Add timezone when assigning start/end time#1460
mschilli87 wants to merge 2 commits intopimutils:masterfrom
mschilli87:issue-1459

Conversation

@mschilli87
Copy link

@mschilli87 mschilli87 commented Mar 15, 2026

See/fixes #1459.

@mschilli87
Copy link
Author

@rtega: Could you please check and confirm if my simplification of your fix didn't break anything?

rtega and others added 2 commits March 15, 2026 12:39
If an allday event is created and subsequently edited via khal no
timezone data is added to the start and end time and thus the ics-file
is not correct. ikhal does this correctly.

The problem seems to be that `edit_event` doesn't add timezone data to
`start` and `end` prior to calling `update_start_end`.

This commit seems to solve this issue.

---
fixes pimutils#1459
Commit 4499e6f034d1dc31c03c4e69b292ada2d22e75c3 contains @rtega's fix
suggested in
pimutils#1459 (comment) in
verbatim, attributing them as the author.

I think this commit simplifies their proposed changes without affecting
the behaviour.

Feel free to stash this into the above commit without acknowledging me
as an author if you see fit so.
@mschilli87
Copy link
Author

Force-pushed to fix committer email to match signing key.

@mschilli87
Copy link
Author

mschilli87 commented Mar 15, 2026

My best guess is that the doc building failure is unrelated to the changes in the PR. If not, please let me know what I need to fix.


edit: #1455 says my hunch was right and suggest that #1457 would fix this unrelated issue.

@rtega
Copy link

rtega commented Mar 15, 2026

@rtega: Could you please check and confirm if my simplification of your fix didn't break anything?

It seems to work OK. Going to test on a few others. If anything breaks, I'll let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timezone data is not added when a allday event is edited to a event with start and end hour

2 participants