mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Update time.md
This commit is contained in:
@@ -56,7 +56,7 @@ test("Welcome to California!", () => {
|
||||
|
||||
test("Welcome to New York!", () => {
|
||||
process.env.TZ = "America/New_York";
|
||||
expect(new Date().getTimezoneOffset()).toBe(300);
|
||||
expect(new Date().getTimezoneOffset()).toBe(240);
|
||||
expect(new Intl.DateTimeFormat().resolvedOptions().timeZone).toBe(
|
||||
"America/New_York",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user