[Gambas-user] Format function changes date value
Jussi Lahtinen
jussi.lahtinen at gmail.com
Thu Jun 7 22:55:58 CEST 2018
> This is wrong: you are using Year(), Month(), Day()... functions that
> assume a local date. It works only if the date is read in the same timezone
> as the write.
>
The point is my way always assumes local date. Thus when "time zone"
changes twice in a year, the dates and times keep the same, instead of
being adjusted wrongly by hour.
You have to, and just have to use CStr() and CDate(). I.e. write dates in
> UTC, and read them back in UTC.
>
The problem is I'm not in UTC and my local time zone changes twice a year.
Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180607/96a5ae84/attachment-0001.html>
More information about the User
mailing list