FreeBSD Bugzilla – Attachment 184288 Details for
Bug 220665
finance/libofx: Improve and simplify daylight variable implementation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
libofx.diff (text/plain), 1.26 KB, created by
Guido Falsi
on 2017-07-11 23:11:19 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Guido Falsi
Created:
2017-07-11 23:11:19 UTC
Size:
1.26 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 445550) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= libofx > PORTVERSION= 0.9.11 >+PORTREVISION= 1 > CATEGORIES= finance > MASTER_SITES= SF/${PORTNAME}/${PORTNAME} > >Index: files/patch-lib_ofx__utilities.cpp >=================================================================== >--- files/patch-lib_ofx__utilities.cpp (revision 445550) >+++ files/patch-lib_ofx__utilities.cpp (working copy) >@@ -1,18 +1,14 @@ > --- lib/ofx_utilities.cpp.orig 2013-04-16 19:50:51 UTC > +++ lib/ofx_utilities.cpp >-@@ -115,9 +115,14 @@ time_t ofxdate_to_time_t(const string of >+@@ -115,6 +115,11 @@ time_t ofxdate_to_time_t(const string ofxdate) > 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; >++ int daylight = 0; >++ >++ tzset(); >++ if(tzname[1][0] != ' ') >++ daylight = 1; > > 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) >+ std::time(&temptime);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jhale
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 220665
: 184288