[GH-ISSUE #5448] claws-mail: local timezone is not used #2999

Closed
opened 2026-05-05 09:39:16 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @bymoz089 on GitHub (Nov 2, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5448

Description

E-mail clients show wrong time of received mails and vcalendar. (experienced with claws-mail), due to using timezone UTC instead of system configured timezone.

Steps to Reproduce

 > date +%Z
 CET

 > firejail --quiet --profile=email-common date +%Z
 UTC

possible fix

adding localtime to line private-etc in file email-common.profile

new line in file email-common.profile should look like:

private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,gnupg,groups,gtk-2.0,gtk-3.0,hostname,hosts,hosts.conf,ld.so.cache,ld.so.preload,machine-id,mailname,nsswitch.conf,passwd,pki,resolv.conf,selinux,ssl,xdg,localtime

edit

above fix solves displayed time of received e-mails, but not vcalendar entries. claws-mail vcalendar plugin seems to use libical to calculate time.

Originally created by @bymoz089 on GitHub (Nov 2, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5448 ### Description E-mail clients show wrong time of received mails and vcalendar. (experienced with claws-mail), due to using timezone `UTC` instead of system configured timezone. ### Steps to Reproduce > date +%Z CET > firejail --quiet --profile=email-common date +%Z UTC ### possible fix adding `localtime` to line `private-etc` in file `email-common.profile` new line in file `email-common.profile` should look like: private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,gnupg,groups,gtk-2.0,gtk-3.0,hostname,hosts,hosts.conf,ld.so.cache,ld.so.preload,machine-id,mailname,nsswitch.conf,passwd,pki,resolv.conf,selinux,ssl,xdg,localtime ### edit above fix solves displayed time of received e-mails, but not vcalendar entries. claws-mail vcalendar plugin seems to use libical to calculate time.
gitea-mirror 2026-05-05 09:39:16 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ghost commented on GitHub (Nov 2, 2022):

Nice find. The private-etc fix for the displayed time of received e-mails can be added right now. Can you ceate a PR for that part of the issue? If so, please keep in mind that the option is alphabetically ordered, so tacking on localtime at the end of the string is not the way we do things...

I'm not sure there's anything firejail can do about the vcalendar plugin behavior, but we'll see about that later.

<!-- gh-comment-id:1301030681 --> @ghost commented on GitHub (Nov 2, 2022): Nice find. The `private-etc` fix for the displayed time of received e-mails can be added right now. Can you ceate a PR for that part of the issue? If so, please keep in mind that the option is _alphabetically_ ordered, so tacking on `localtime` at the end of the string is not the way we do things... I'm not sure there's anything firejail can do about the vcalendar plugin behavior, but we'll see about that later.
Author
Owner

@bymoz089 commented on GitHub (Jan 16, 2023):

See new PR (https://github.com/netblue30/firejail/pull/5594) to fix vcalendar issue.

<!-- gh-comment-id:1383739304 --> @bymoz089 commented on GitHub (Jan 16, 2023): See new PR (https://github.com/netblue30/firejail/pull/5594) to fix vcalendar issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2999
No description provided.