D
david
I used the localtime() function in the following code snippet:
....
tm = localtime(&ps->date);
printf("---------------------\n");
printf("Date: %d/%02d/%02d %02d:%02d:%02d\n",
1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
....
The printout listed the time one hour off from GMT (probably due to
daylight saving..) instead in local time which is EDT.
The timezone for the platform (Linux Redhat8.0) seems to be setup
correctly. I try to set the TZ with different values, but the results
are for some reason not stable.
Any idea?
Thanks a lot!
David
(e-mail address removed)
....
tm = localtime(&ps->date);
printf("---------------------\n");
printf("Date: %d/%02d/%02d %02d:%02d:%02d\n",
1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
....
The printout listed the time one hour off from GMT (probably due to
daylight saving..) instead in local time which is EDT.
The timezone for the platform (Linux Redhat8.0) seems to be setup
correctly. I try to set the TZ with different values, but the results
are for some reason not stable.
Any idea?
Thanks a lot!
David
(e-mail address removed)