Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystal/system/win32/time.cr
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ module Crystal::System::Time
# wHour, wMinute and wSecond are absolute time
day = 1

time = ::Time.utc(year, systemtime.wMonth, day, systemtime.wHour, systemtime.wMinute, systemtime.wSecond)
time = ::Time.utc(year, systemtime.wMonth.to_i32, day, systemtime.wHour.to_i32, systemtime.wMinute.to_i32, systemtime.wSecond.to_i32)
i = systemtime.wDayOfWeek.to_i32 - time.day_of_week.to_i32

if i < 0

0 comments on commit 7d98e1f

Please sign in to comment.