Skip to content

Commit 7bc7f57

Browse files
authored
Merge pull request #29 from hackclub/malted-patch-1
Change High Seas ending to midnight EST
2 parents 294f64a + d2e2f65 commit 7bc7f57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

helpers/interval.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ func ResolveIntervalTZ(interval *models.IntervalKey, tz *time.Location) (err err
7878
from = time.Date(2024, 10, 3, 0, 0, 0, 0, time.Local)
7979
to = time.Date(2025, 1, 12, 23, 59, 59, 0, time.Local)
8080
case models.IntervalHighSeas:
81+
est, _ := time.LoadLocation("America/New_York")
8182
from = time.Date(2024, 10, 30, 0, 0, 0, 0, time.Local)
82-
to = time.Date(2025, 1, 31, 23, 59, 59, 0, time.Local)
83+
to = time.Date(2025, 1, 31, 23, 59, 59, 0, est)
8384
default:
8485
err = errors.New("invalid interval")
8586
}

0 commit comments

Comments
 (0)