New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firefox gets wrong timezone on NixOS #238025
Comments
Had the same issue, I noticed it from discord and facebook showing times in UTC. Setting I suspect this is a recent (last few weeks) issue, since I feel like it was fine before. I might try bisect it later tonight. |
I can't reproduce the issue in |
works if sandbox is disabled
|
Set the |
I can just manually set this but knowing that It worked in the previous update my mind just don't allow me to add another line to my config, so for now until they add it in the browser or soemthing I will just launch firefox using |
with firefox 115 timezone issue is back ... I guess until we hear back from upstream workaround is to set TZ |
https://bugzilla.mozilla.org/show_bug.cgi?id=1839287 |
firefox 115 requires icu73, so it's either |
If it is a sandbox issue, would not using |
for as for reproducing the issue, I have setting but whats strange is
so maybe some sort of (reliable 🤣 ) race condition, hopefully upstream can shine some light on the issue |
setting |
Workaround, setting the TZ environment variable: { pkgs, ... }:
let
patched-firefox = pkgs.symlinkJoin {
name= "patched-firefox";
paths = [ pkgs.firefox ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/firefox" --set TZ /etc/localtime
'';
};
in
{
home.packages = with pkgs; [
patched-firefox
];
} |
Wth it's still not done yet? |
https://bugzilla.mozilla.org/show_bug.cgi?id=1848615 wontfix in 116, affected for 117/118, so an upstream fix will likely arrive in a 117 point release. Firefox 117.0 is due early next week. |
looks like it will be fixed in |
By set the `TZ` environment variable manually. ref: NixOS/nixpkgs#238025 (comment) Signed-off-by: Bo-Wei Chen(BWbwchen) <tim.chenbw@gmail.com>
Fix targeted for 117.0.1. |
firefox doesn't have correct timezone on NixOS
Steps To Reproduce
Steps to reproduce the behavior:
NixOS has correctly set timezone with
time.timeZone = "Asia/Shanghai"
run
date
andtimedatectl
all return correct timezoneopen Chromium and test timezone with https://webbrowsertools.com/timezone/ timezone is correct
open Firefox and test timezone with https://webbrowsertools.com/timezone/ timezone is wrong, in my case it shows
GMT-0500 (Central Daylight Time)
(doesn't matter if it's firefox or firefox-beta,
privacy.resistFingerprinting
is false)run firefox with TZ set works, eg
TZ=Asia/Shanghai /nix/store/pnm2qqfwpg7gqvybp2p0cghci3nm94my-firefox-114.0b7/bin/firefox
, visit https://webbrowsertools.com/timezone/ and timezone is correct nowmy observation is Firefox needs TZ explicit set, which NixOS doesn't
Additional context
Possibly related to #23053
The text was updated successfully, but these errors were encountered: