<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">17.08.2020 15:06, Gianluigi пишет:<br>
</div>
<blockquote type="cite"
cite="mid:CAJ2rqFZW=fC38LNNy3gnSOwt8sp8FkUwiFHuiPruONBGnRLfSw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">http://gambaswiki.org/wiki/doc/date</a><br>
<br>
Regards<br>
Gianluigi <br>
</div>
</div>
</div>
<br>
</blockquote>
<p>I don't get how this is a bugfix. The documentation states:<br>
Date Returns a date without its time component<br>
Yet I get some random time with a date when I print a date. <br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAJ2rqFZW=fC38LNNy3gnSOwt8sp8FkUwiFHuiPruONBGnRLfSw@mail.gmail.com">
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">
----[ <a class="moz-txt-link-freetext" href="http://gambaswiki.org/wiki/doc/netiquette">http://gambaswiki.org/wiki/doc/netiquette</a> ]----
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>