freebsd-ports/finance/libofx/files/patch-lib__ofx_utilities.cpp
Jason E. Hale 5fad80797e - USES=libtool, drop .la files
- Strip binaries
- Remove autotools hacks that can be fixed with staging
- Fix packaging of documentation and give regular DOCS their own option
- Rename APIDOC option to DOXYGEN
- Bump PORTREVISION
2014-06-23 02:31:01 +00: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)