Index: src/ports/SkTime_Unix.cpp |
diff --git a/src/ports/SkTime_Unix.cpp b/src/ports/SkTime_Unix.cpp |
index f519a69d07c2843a60427ea385a5d79b11dd765c..6e305a16f6eb8073e393e1d5d8629826035daaab 100644 |
--- a/src/ports/SkTime_Unix.cpp |
+++ b/src/ports/SkTime_Unix.cpp |
@@ -20,8 +20,8 @@ void SkTime::GetDateTime(DateTime* dt) |
time(&m_time); |
struct tm* tstruct; |
tstruct = localtime(&m_time); |
- |
- dt->fYear = tstruct->tm_year; |
+ // http://pubs.opengroup.org/onlinepubs/009695399/basedefs/time.h.html |
+ dt->fYear = tstruct->tm_year + 1900; |
dt->fMonth = SkToU8(tstruct->tm_mon + 1); |
dt->fDayOfWeek = SkToU8(tstruct->tm_wday); |
dt->fDay = SkToU8(tstruct->tm_mday); |