freebsd-ports/finance/libofx/files/patch-lib_ofx_utilities.cpp
Wen Heping a0b87ee68f - Update to 0.94
PR:		ports/157515
Submitted by:	Jason E. Hale <bsdkaffee@gmail.com> (maintainer)
2011-06-02 08:20:38 +00:00

18 lines
578 B
C++

--- ./lib/ofx_utilities.cpp.orig 2011-04-18 11:51:21.000000000 -0400
+++ ./lib/ofx_utilities.cpp 2011-06-01 21:09:51.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)