<div dir="ltr"><div class="gmail_quote"><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
How do you write your date/time to the disk?<br>
<br>
If you use the READ/WRITE instructions, the date/time will be always <br>
read and written by Gambas in binary form, i.e. in UTC date/time.<br>
<br>
Otherwise, if you do that by yourself, you have to store the timezone <br>
with it manually.<br></blockquote><div><br></div><div>This is how I load the alarms:</div><div><br></div><div>      sTotal = Settings[sPath &/ "Date&Time", ""]</div><div><br></div><div>      sStr = Split(sTotal, " ")<br>      <br>      sDate = Split(sStr[0], "/")<br>      sTime = Split(sStr[1], ":")<br>      <br>      hAlarm.hTotal = Date(sDate[2], sDate[0], sDate[1], sTime[0], sTime[1], sTime[2])</div><div><br></div><div>This is how I save the alarms:</div><div><br></div><div>Settings[sPath &/ "Date&Time"] = Subst("&1/&2/&3 &4:&5:&6", Format(Month(hAlarm.hTotal), "0#"), Format(Day(hAlarm.hTotal), "0#"), Year(hAlarm.hTotal), Format(Hour(hAlarm.hTotal), "0#"), Format(Minute(hAlarm.hTotal), "0#"), Format(Second(hAlarm.hTotal), "0#"))<br>   <br></div><div>IE, save and loaded as local time.</div><div><br></div><div>IE, if there is this on the disk:</div><div>Date&Time="10/28/2019 08:30:00"</div><div><br></div><div>It will be loaded 08:30 as local time and internally 06:30. But if time zone changes, then it is suddenly 07:30 local time and internally 06:30.</div><div><br></div><div>Saving the values as UTC doesn't fix that as there is no control on how it is interpreted/converted to local time.<br></div><div><br></div><div>Did you read the example I gave that applies within Finland?</div><div><br></div><div><br></div><div>Jussi<br></div><div><br></div><div><br></div><div><br> </div></div></div>