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:
robertphillips 2014-12-01 05:55:54 -08:00 committed by Commit bot
parent 43044ddd11
commit 8a2198a56b

View File

@ -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);