We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d9d93d commit 3138778Copy full SHA for 3138778
coderd/insights_internal_test.go
@@ -179,17 +179,17 @@ func Test_parseInsightsInterval_week(t *testing.T) {
179
t.Parallel()
180
181
layout := insightsTimeLayout
182
- sydneyLoc, err := time.LoadLocation("America/Los_Angeles") // Random location
+ losAngelesLoc, err := time.LoadLocation("America/Los_Angeles") // Random location
183
require.NoError(t, err)
184
185
- now := time.Now().In(sydneyLoc)
+ now := time.Now().In(losAngelesLoc)
186
t.Logf("now: %s", now)
187
188
y, m, d := now.Date()
189
- today := time.Date(y, m, d, 0, 0, 0, 0, sydneyLoc)
+ today := time.Date(y, m, d, 0, 0, 0, 0, losAngelesLoc)
190
t.Logf("today: %s", today)
191
192
- thisHour := time.Date(y, m, d, now.Hour(), 0, 0, 0, sydneyLoc)
+ thisHour := time.Date(y, m, d, now.Hour(), 0, 0, 0, losAngelesLoc)
193
t.Logf("thisHour: %s", thisHour)
194
twoHoursAgo := thisHour.Add(-2 * time.Hour)
195
t.Logf("twoHoursAgo: %s", twoHoursAgo)
0 commit comments