Path: blob/main/astro/celestia/files/patch-src_celestia_kde_kdeglwidget.cpp
18160 views
--- src/celestia/kde/kdeglwidget.cpp.orig 2009-06-22 22:44:211+++ src/celestia/kde/kdeglwidget.cpp 2009-08-17 13:30:312@@ -106,9 +106,16 @@34time_t curtime=time(NULL);5appCore->start(astro::UTCtoTDB((double) curtime / 86400.0 + (double) astro::Date(1970, 1, 1)));6+#if defined(__FreeBSD__)7+ /* FreeBSD does not export raw `timezone' and `daylight' values */8+ struct tm *temptime = localtime(&curtime);9+ appCore->setTimeZoneBias(temptime->tm_gmtoff);10+ appCore->setTimeZoneName(temptime->tm_zone);11+#else12localtime(&curtime); /* Only doing this to set timezone as a side effect*/13appCore->setTimeZoneBias(-timezone+3600*daylight);14appCore->setTimeZoneName(tzname[daylight?0:1]);15+#endif16appCore->tick();1718KGlobal::config()->setGroup("Preferences");192021