為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Thunderbird ignores user TZ environment variable

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 ajdunevent

more options

On 64 bit Arch Linux, my system's timezone is set to US/Central /etc/localtime -> /usr/share/zoneinfo/US/Central

I work for a company in the US/Eastern time zone so the "work" user account on my computer has the US/Eastern timezone exported as an environment variable in several places (.bashrc, .profile, .xinitrc, .xprofile) export TZ=":/usr/share/zoneinfo/US/Eastern"

In Thunderbird 52 (and earlier) this worked as expected. Starting with Thunderbird 60, the "Date" and "Received" columns are reflecting the system's timezone instead of the user's timezone. The issue persists with a fresh profile.

This is probably related/duplicate of the following question even though the poster's system timezone and TZ variable seem to be in agreement: https://support.mozilla.org/en-US/questions/1229111

Edited to include colon when TZ is pointed to a zoneinfo file per https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html (does not fix the issue, a fixed solution is below, but it is the correct way to do things)

On 64 bit Arch Linux, my system's timezone is set to US/Central /etc/localtime -> /usr/share/zoneinfo/US/Central I work for a company in the US/Eastern time zone so the "work" user account on my computer has the US/Eastern timezone exported as an environment variable in several places (.bashrc, .profile, .xinitrc, .xprofile) export TZ=":/usr/share/zoneinfo/US/Eastern" In Thunderbird 52 (and earlier) this worked as expected. Starting with Thunderbird 60, the "Date" and "Received" columns are reflecting the system's timezone instead of the user's timezone. The issue persists with a fresh profile. This is probably related/duplicate of the following question even though the poster's system timezone and TZ variable seem to be in agreement: https://support.mozilla.org/en-US/questions/1229111 Edited to include colon when TZ is pointed to a zoneinfo file per https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html (does not fix the issue, a fixed solution is below, but it is the correct way to do things)

由 ajdunevent 於 修改

被選擇的解決方法

Exporting the TZ variable to .pam_environment but without the "/usr/share/zoneinfo" part does the trick for me.

So, for example, the relevant part of my work user's .pam_environment shows: TZ=:US/Eastern

Edited to include colon when TZ is pointed to a zoneinfo file per https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

Per version 60 release notes there is a new time adjustment that you may need to address. https://www.thunderbird.net/en-US/thunderbird/60.0/releasenotes/

more options

選擇的解決方法

Exporting the TZ variable to .pam_environment but without the "/usr/share/zoneinfo" part does the trick for me.

So, for example, the relevant part of my work user's .pam_environment shows: TZ=:US/Eastern

Edited to include colon when TZ is pointed to a zoneinfo file per https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html

由 ajdunevent 於 修改