samples/geotag.cpp: fixed debugging code to be in the correct ifdef

This commit is contained in:
Mario Emmenlauer 2018-04-07 14:10:38 +02:00 committed by Luis Díaz Más
parent bf7047a71b
commit 548d7688c7

View File

@ -420,13 +420,13 @@ int timeZoneAdjust()
#else
struct tm local = *localtime(&now) ;
offset = local.tm_gmtoff ;
#endif
#if DEBUG
struct tm utc = *gmtime(&now);
printf("utc : offset = %6d dst = %d time = %s", 0 ,utc .tm_isdst, asctime(&utc ));
printf("local: offset = %6d dst = %d time = %s", offset,local.tm_isdst, asctime(&local));
printf("timeZoneAdjust = %6d\n",offset);
#endif
#endif
return offset ;
}