this seems to do nothing
env = {
TZ=Americas/Los_Angeles;
};
this gives error, doesn’t like “PST”
env = {
TZ=PST;
};
I wonder if it is something with the error the command tzselect gives…
/usr/bin/tzselect: line 179: /etc/zoneinfo/iso3166.tab: No such file or directory
/usr/bin/tzselect: time zone files are not set up correctly.
Actually, timezone files are missing, add them through tzdata package
packages = [
# other packages...
pkgs.tzdata
];
env = {
# other environment variables...
# default TZDIR is /etc/zoneinfo but tzdata
# stores them at /usr/share/zoneinfo
TZDIR = "/usr/share/zoneinfo";
# the timezone file to use
TZ = "Asia/Tokyo";
};
I found this command adb shell service call alarm 3 s16 <timezone> in android - how do i change timezone using adb - Stack Overflow which directly modifies the timezone on the android device and I have no idea how it works. No gonna lie but it looks very tricky, I would like some options in the dev.idx for the android emulator instead.
Anyway, you can add it in the dev.idx file like this
thanks again! , good find,
my quick search came back with no way to set time zone when using flutter to start Android emulator.
tweaked your suggestion, and got it working… notice the double single qoutes.
opening project today, emulator didn’t have the same time as env,
even though I see in the terminal what appears to be a successful response from the adb command from on start in dev.nix , but emulator time didn’t match system time after a hard restart.
at least the adb cmd from the terminal works to quickly set emulator time,