diff --git a/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp b/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp index 2d8e118..addb22f 100644 --- a/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp +++ b/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp @@ -158,7 +158,7 @@ void GpSystemServices_Android::GetLocalDateTime(unsigned int &year, unsigned int time_t t = time(nullptr); tm *tmObject = localtime(&t); year = static_cast(tmObject->tm_year); - month = static_cast(tmObject->tm_mon); + month = static_cast(tmObject->tm_mon + 1); hour = static_cast(tmObject->tm_hour); minute = static_cast(tmObject->tm_min); second = static_cast(tmObject->tm_sec);