Skip to content

Add timezone when assigning start/end time#1460

Merged
WhyNotHugo merged 2 commits intopimutils:masterfrom
mschilli87:issue-1459
Mar 24, 2026
Merged

Add timezone when assigning start/end time#1460
WhyNotHugo merged 2 commits intopimutils:masterfrom
mschilli87:issue-1459

Conversation

@mschilli87
Copy link
Contributor

@mschilli87 mschilli87 commented Mar 15, 2026

See/fixes #1459.

@mschilli87

This comment was marked as resolved.

@mschilli87

This comment was marked as outdated.

@mschilli87

This comment was marked as resolved.

@rtega
Copy link
Contributor

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.

@mschilli87

This comment was marked as outdated.

@mschilli87

This comment was marked as resolved.

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.
@WhyNotHugo WhyNotHugo merged commit 245a517 into pimutils:master Mar 24, 2026
7 checks passed
@WhyNotHugo
Copy link
Member

Thanks!

@mschilli87 mschilli87 deleted the issue-1459 branch March 24, 2026 17:11
@WhyNotHugo
Copy link
Member

Forgot about it: can you add a changelog entry (for v0.14.1) for this too?

@mschilli87

This comment was marked as outdated.

mschilli87 added a commit to mschilli87/khal that referenced this pull request Mar 24, 2026
@mschilli87
Copy link
Contributor Author

done: #1465

WhyNotHugo pushed a commit that referenced this pull request Mar 24, 2026
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

3 participants