Skip to content

Commit

Permalink
Fix Time on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 authored and ysbaddaden committed Jun 12, 2018
1 parent a9bab0c commit 7d98e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystal/system/win32/time.cr
Expand Up @@ -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
Expand Down

0 comments on commit 7d98e1f

Please sign in to comment.