bun process. Set the TZ environment variable to a valid time zone identifier.
When running a file with
bun, the time zone defaults to your system’s configured local time zone.When running tests with bun test, the time zone is set to UTC to make tests more deterministic.You can also set
TZ on the command line when running a Bun command.
terminal
Once
TZ is set, every Date instance uses that time zone.