J JDS Active Member Licensed User Longtime User Apr 3, 2019 #1 Looks like we stumbled uppon a issue with winter/summertime. Case The application is started in wintertime and not closed. Then the summertime is taking affect. The device shows summertime but when using the following function: Code: Copy Sub GetTime As String Dim lNow As Long lNow = DateTime.Now Return DateTime.Time(lNow) End Sub It returns wintertime. If the device/application is restarted then the above function returns summertime. Any thoughts how to prevent this? The same happens when going from summer to wintertime.
Looks like we stumbled uppon a issue with winter/summertime. Case The application is started in wintertime and not closed. Then the summertime is taking affect. The device shows summertime but when using the following function: Code: Copy Sub GetTime As String Dim lNow As Long lNow = DateTime.Now Return DateTime.Time(lNow) End Sub It returns wintertime. If the device/application is restarted then the above function returns summertime. Any thoughts how to prevent this? The same happens when going from summer to wintertime.
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2019 #2 https://www.b4x.com/android/help/core.html#datetime_listentoexternaltimechanges Upvote 0