Android Question SOLVED : datetime.time(datetime.now) is one hour behind the time on the phone

Antonio Ferreira

Member
Licensed User
Longtime User
I have im my code - DateTime.SetTimeZone(0)
I remove this line and all is OK



I've always used the datetime.time(datetime.now) function to get the current time, which has always been the same as the time on the phone.
I'm in Portugal and at the moment datetime.time(datetime.now) is one hour behind the time on my phone.

This is happening after 27-03-2024 when Portugal time was changed (summer time)

B4A 12.8

what's wrong?

thank you
 
Last edited:
Top