http://gambaswiki.org/bugtracker/edit?object=BUG.1097&from=L21haW4-
T. Lee DAVIDSON reported a new bug. Summary ------- Date.ToUnixTime loses a day Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- The output of gb.util's Date.ToUnixTime is a day behind irregardless of local time vs. GMT Here's a simple proof also showing that Date.FromUnixTime is not affected: Dim iEpochSeconds As Integer = 1493168023 ' 2017-Apr-26 00:53:43 GMT Print Date.FromUnixTime(iEpochSeconds) Print Now Print Date.FromUnixTime(Date.ToUnixTime(Now)) System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.57-18.3-default Architecture=x86_64 Distribution=SuSE NAME="openSUSE Leap" VERSION="42.2" ID=opensuse ID_LIKE="suse" VERSION_ID="42.2" PRETTY_NAME="openSUSE Leap 42.2" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:42.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M [Libraries] DBus=libdbus-1.so.3.8.14 OpenGL=libGL.so.1.2.0 [Environment] (Is environment _really_ needed?) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user