Android Question Summertime

JDS

Active Member
Licensed User
Longtime User
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:

B4X:
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.
 
Top