Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 183708
Collapse All | Expand All

(-)widgets/e-timezone-dialog/e-timezone-dialog.c.orig (-1 / +14 lines)
Lines 80-86 struct _ETimezoneDialogPrivate { Link Here
80
80
81
#ifndef G_OS_WIN32 /* Declared properly in time.h already */
81
#ifndef G_OS_WIN32 /* Declared properly in time.h already */
82
extern char *tzname[2];
82
extern char *tzname[2];
83
#ifndef __BSD_VISIBLE
83
extern long timezone;
84
extern long timezone;
85
#endif
84
extern int daylight;
86
extern int daylight;
85
#endif
87
#endif
86
88
Lines 317-325 static const icaltimezone* Link Here
317
get_local_timezone()
319
get_local_timezone()
318
{
320
{
319
	icaltimezone *zone;
321
	icaltimezone *zone;
322
	long offset;
323
#ifdef __BSD_VISIBLE
324
	time_t tt;
325
	struct tm tm;
326
#endif
320
	
327
	
321
	tzset();
328
	tzset();
322
	zone =  icaltimezone_get_builtin_timezone_from_offset (-timezone, tzname[0]);
329
#ifdef __BSD_VISIBLE
330
	localtime_r (&tt, &tm);
331
	offset = tm.tm_gmtoff;
332
#else
333
	offset = -timezone;
334
#endif
335
	zone =  icaltimezone_get_builtin_timezone_from_offset (offset, tzname[0]);
323
336
324
	return zone;
337
	return zone;
325
}
338
}

Return to bug 183708