Skip to content

Commit 992dad2

Browse files
committed
fix: Use correct timezone for default day in CLI options
1 parent a0ab173 commit 992dad2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/aoc/cli.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ defmodule AoC.CLI do
3838
]
3939
end
4040

41+
# Use UTC-5 in December, thanks rvnash ;)
42+
defp current_day, do: DateTime.shift(DateTime.utc_now(), hour: -5).day
4143
defp current_year, do: Date.utc_today().year
42-
defp current_day, do: Date.utc_today().day
4344

4445
def part_command(module, opts \\ []) do
4546
year_day_command(

0 commit comments

Comments
 (0)