samples/geotag.cpp: fixed debugging code to be in the correct ifdef
This commit is contained in:
parent
bf7047a71b
commit
548d7688c7
@ -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 ;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user