opnsense-ports/finance/libofx/files/patch-lib__ofx_utilities.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

18 lines
578 B
C++

--- ./lib/ofx_utilities.cpp.orig 2013-04-16 15:50:51.000000000 -0400
+++ ./lib/ofx_utilities.cpp 2014-06-22 19:44:48.000000000 -0400
@@ -115,9 +115,14 @@
char time_zone_specified = false;
string ofxdate_whole;
time_t temptime;
+ int daylight;
+ const struct tm* t;
+
+ std::time(&temptime);
+ t = localtime(&temptime);
+ daylight = t->tm_isdst;
time.tm_isdst = daylight; // initialize dst setting
- std::time(&temptime);
local_offset = difftime(mktime(localtime(&temptime)), mktime(gmtime(&temptime))) + (3600 * daylight);
if (ofxdate.size() != 0)