I have an app that calculates sunrise. It gives me the correct sunrise times in the UK, where the Time Zone Offset is 0. My daughter has just gone on holiday to Greece, and she reports back that the sunrise time my app shows is one hour ahead. I calculate sunrise using GPS location, and then add TZ which is worked out as
TZ should come to 2 hours in Greece, which indeed it does, when I test by manually setting my phone here in the UK, to locations Athens.
The phone on my daughter's phone has automatically adjusted to Athen's time, which I have confirmed with her is 2 hours ahead of GMT.
Anyone got any idea why the DateTime.TimeZoneOffset appears to show 3 hours, when it is showing 2 hours on the phone time?
IOS app on a iPhone 5 is also showing the same as the android app.
B4X:
TZ = DateTime.TimeZoneOffset
TZ should come to 2 hours in Greece, which indeed it does, when I test by manually setting my phone here in the UK, to locations Athens.
The phone on my daughter's phone has automatically adjusted to Athen's time, which I have confirmed with her is 2 hours ahead of GMT.
Anyone got any idea why the DateTime.TimeZoneOffset appears to show 3 hours, when it is showing 2 hours on the phone time?
IOS app on a iPhone 5 is also showing the same as the android app.