<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 17 ago 2020 alle ore 05:25 Admin <<a href="mailto:admin@allunix.ru">admin@allunix.ru</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I noticed that my program that compares dates stopped working after an <br>
upgrade from Debian 9 to 10 (and therefore to Gambas 3.12.2).<br>
<br>
I also noticed it didn't work on some Kubuntu machine earlier but had no <br>
time to check why back then.<br>
<br>
Now I see it: on Debian 9 "print Date" returned my current local date <br>
without time component, which seems to be how the documentation says. <br>
Now it returns yesterday date and, suddenly, time, and it always is <br>
17:00:00.<br>
<br>
DateChooser behaves the same way: on Debian 9 DataChooser.Value (in a <br>
DateOnly mode) returns the selected date. On Debian 10 in the same <br>
programm it returns yesterday date and time which is always 17:00:00<br>
<br>
In the same time "Now" correctly returns current local date and time on <br>
both systems.<br>
<br>
I need to create a universal code, but I cant figure out how to make <br>
DataChooser.value always return only date, as it does automatically on <br>
Debian 9.<br></blockquote><div><br></div><div>From gambas 3.10.0 things have changed: "CStr and CDate are now mutually coherent, by internally converting to UTC dates only. Beware, this bug fix is not backward-compatible!"<br><br>Here is an (initial) explanation from Benoit:<br><a href="http://gambaswiki.org/wiki/doc/date">http://gambaswiki.org/wiki/doc/date</a><br><br>Regards<br>Gianluigi <br></div></div></div>