View | Details | Raw Unified
Collapse All | Expand All

(-) widgets/e-timezone-dialog/e-timezone-dialog.c.orig (-1 / +14 lines)
 Lines 80-86   struct _ETimezoneDialogPrivate { Link Here 
#ifndef G_OS_WIN32 /* Declared properly in time.h already */
#ifndef G_OS_WIN32 /* Declared properly in time.h already */
extern char *tzname[2];
extern char *tzname[2];
#ifndef __BSD_VISIBLE
extern long timezone;
extern long timezone;
#endif
extern int daylight;
extern int daylight;
#endif
#endif
 Lines 317-325   static const icaltimezone* Link Here 
get_local_timezone()
get_local_timezone()
{
{
	icaltimezone *zone;
	icaltimezone *zone;
	long offset;
#ifdef __BSD_VISIBLE
	time_t tt;
	struct tm tm;
#endif
	
	
	tzset();
	tzset();
	zone =  icaltimezone_get_builtin_timezone_from_offset (-timezone, tzname[0]);
#ifdef __BSD_VISIBLE
	localtime_r (&tt, &tm);
	offset = tm.tm_gmtoff;
#else
	offset = -timezone;
#endif
	zone =  icaltimezone_get_builtin_timezone_from_offset (offset, tzname[0]);
	return zone;
	return zone;
}
}