16 lines
637 B
Plaintext
16 lines
637 B
Plaintext
$OpenBSD: patch-Foundation_src_Timezone_UNIX_cpp,v 1.2 2013/08/16 10:05:55 sthen Exp $
|
|
|
|
https://github.com/pocoproject/poco/issues/131
|
|
|
|
--- Foundation/src/Timezone_UNIX.cpp.orig Wed Mar 6 19:45:52 2013
|
|
+++ Foundation/src/Timezone_UNIX.cpp Tue Mar 19 17:13:08 2013
|
|
@@ -52,7 +52,7 @@ class TZInfo (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);
|