mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-27 09:39:08 +01:00
- fixed GH #130: Patch: prefer sysconf over sysctlbyname - fixed GH #131: Patch: no timezone global var on OpenBSD
This commit is contained in:
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
int timeZone()
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(POCO_ANDROID) // no timezone global var
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined (__OpenBSD__) || defined(POCO_ANDROID) // no timezone global var
|
||||
std::time_t now = std::time(NULL);
|
||||
struct std::tm t;
|
||||
gmtime_r(&now, &t);
|
||||
|
||||
Reference in New Issue
Block a user