Third time's a charm.

svn path=/trunk/boinc/; revision=223
This commit is contained in:
Eric Heien 2002-07-18 21:30:17 +00:00
parent fe124afa05
commit 1711f02723
1 changed files with 7 additions and 5 deletions

View File

@ -123,17 +123,19 @@ char* ip_addr_string(int ip_addr) {
int get_timezone( void ) {
tzset();
// TODO: take daylight savings time into account
#ifdef __timezone
tz = __timezone;
#elif timezone
tz = timezone;
#else
#ifdef mac
time_t cur_time;
struct tm *time_data;
cur_time = time(NULL);
time_data = localtime( &cur_time );
return time_data->tm_gmtoff;
#else
#ifdef __timezone
return __timezone;
#else
return timezone;
#endif
#endif
}