Fix Windows SkTime version
Windows' GetSystemTime returns months in 1-12 range (http://msdn.microsoft.com/en-us/library/aa908737.aspx) while Linux' time returns months in 0-11 range. Review URL: https://codereview.chromium.org/765383002
This commit is contained in:
parent
43044ddd11
commit
8a2198a56b
@ -17,7 +17,7 @@ void SkTime::GetDateTime(DateTime* dt)
|
||||
GetSystemTime(&st);
|
||||
|
||||
dt->fYear = st.wYear;
|
||||
dt->fMonth = SkToU8(st.wMonth + 1);
|
||||
dt->fMonth = SkToU8(st.wMonth);
|
||||
dt->fDayOfWeek = SkToU8(st.wDayOfWeek);
|
||||
dt->fDay = SkToU8(st.wDay);
|
||||
dt->fHour = SkToU8(st.wHour);
|
||||
|
Loading…
Reference in New Issue
Block a user