<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 1/13/2017 3:36 AM, Thomas Baumgart wrote:<br>
</div>
<blockquote cite="mid:1696983.37Ye5hp6sP@thb-nb.site" type="cite">Thanks for the detailed analysis. I think it hits the nail right on the head.
<pre wrap="">Date and timezone handling is all done by libOFX (I fixed something myself in
that are sometime ago - wow 7 years:
<a class="moz-txt-link-freetext" href="https://github.com/libofx/libofx/commit/166b97964de3ed3986346f8844d8029ca11e3d79">https://github.com/libofx/libofx/commit/166b97964de3ed3986346f8844d8029ca11e3d79</a>,
the internet does not forget)
Not sure what we can do about it since all that is handled by libOFX AFAIR. </pre>
</blockquote>
I had the same exact problem with libOFX on Windows. A time of midnight was getting converted to 11:00 PM the previous day when daylight savings time was not in effect. I fixed it in my local build of libOFX by changing line 118 of Thomas' patch to
<br>
<br>
<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179); font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(234, 255, 234);">time</span><span style="color: rgb(51, 51, 51); font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(234, 255, 234); display: inline !important; float: none;">.</span><span class="pl-smi" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(234, 255, 234);">tm_isdst</span><span style="color: rgb(51, 51, 51); font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(234, 255, 234); display: inline !important; float: none;">
= -1; //mktime() will figure out daylight savings based on locale</span><br>
<br>
For me, this works both when DST is in effect and when it is not.<br>
</body>
</html>