diff --git a/coderd/database/dbtestutil/db.go b/coderd/database/dbtestutil/db.go index 3d636e6833131..1bc001c94ae24 100644 --- a/coderd/database/dbtestutil/db.go +++ b/coderd/database/dbtestutil/db.go @@ -76,7 +76,7 @@ func NewDBWithSQLDB(t testing.TB, opts ...Option) (database.Store, pubsub.Pubsub return db, ps, sqlDB } -var DefaultTimezone = "Canada/Newfoundland" +var DefaultTimezone = "America/St_Johns" // NowInDefaultTimezone returns the current time rounded to the nearest microsecond in the default timezone // used by postgres in tests. Useful for object equality checks. diff --git a/coderd/database/querier_test.go b/coderd/database/querier_test.go index 4dbb4a350a1c3..6c8b5d097bdff 100644 --- a/coderd/database/querier_test.go +++ b/coderd/database/querier_test.go @@ -4082,7 +4082,7 @@ func TestGetUserStatusCounts(t *testing.T) { t.Skip("https://github.com/coder/internal/issues/464") timezones := []string{ - "Canada/Newfoundland", + "America/St_Johns", "Africa/Johannesburg", "America/New_York", "Europe/London", diff --git a/coderd/workspacestats/activitybump_test.go b/coderd/workspacestats/activitybump_test.go index d778e2fbd0f8a..8952d053e314a 100644 --- a/coderd/workspacestats/activitybump_test.go +++ b/coderd/workspacestats/activitybump_test.go @@ -25,11 +25,11 @@ func Test_ActivityBumpWorkspace(t *testing.T) { // We test the below in multiple timezones specifically // chosen to trigger timezone-related bugs. timezones := []string{ - "Asia/Kolkata", // No DST, positive fractional offset - "Canada/Newfoundland", // DST, negative fractional offset - "Europe/Paris", // DST, positive offset - "US/Arizona", // No DST, negative offset - "UTC", // Baseline + "Asia/Kolkata", // No DST, positive fractional offset + "America/St_Johns", // DST, negative fractional offset + "Europe/Paris", // DST, positive offset + "US/Arizona", // No DST, negative offset + "UTC", // Baseline } for _, tt := range []struct {