]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/wince/time.cpp
corrections for buffers
[wxWidgets.git] / src / msw / wince / time.cpp
index 22fd23687fd38732023f20a66ded1db52c6f98d0..b512e22ec7e80a3da2a2d97deb9cbec85a4b9561 100644 (file)
@@ -173,7 +173,7 @@ time_t __cdecl time(time_t *t)
 ////////////////////////////////////////////////////////////////////////
 time_t __cdecl mktime(struct tm *t)
 {
-       return (common_tm_to_time(t->tm_mday, t->tm_mon, t->tm_year, t->tm_hour, t->tm_min, t->tm_sec)) ;
+       return (common_tm_to_time(t->tm_mday, t->tm_mon+1, t->tm_year+1900, t->tm_hour, t->tm_min, t->tm_sec)) ;
 }