We can’t, as I’m using mac and Jose is using Windows 11. We need:
Jose to confirm if he manually changed the DST settings on Windows 11, or other setting
someone with Windows 11
Changed my mac computer to Mexico City TZ and executed this code:
Dim dd As DateTime = DateTime.Now()
System.DebugLog dd.ToString
Dim tz As New TimeZone("America/Mexico_City")
Dim dd2 As DateTime = DateTime.Now(tz)
System.DebugLog dd2.ToString
Resutl:
8:11:27 AM : Jun 18, 2023 at 8:11:27 AM
Jun 18, 2023 at 8:11:27 AM
my local time was 9:11 but the computer set it to Mexico City time.
I think you know that that case has nothing to do with what Jose is experimenting.
That case is happening because Xojo can’t handle a nonexistent time during a Daylight change. In the US and other countries the changes are done at 2am or 3am, where the bug exists the change is at 0hrs so a DateTime of YYYY-MM-DD 00:00:00 does not exist and Xojo report that as invalid. I hope they fix that but again has nothing to do with Jose’s problem.
Is fine if you don’t want to try to replicate what Jose is experimenting, but just posting other bugs here does not help anyone.
and yet you complain that we are not comparing oranges to oranges.
When I have time I will download a Windows 11 VM and test there to see if I can reproduce what Jose is seeing. I hope I can post useful information then.
If you have access to Windows 11 (or maybe even do a test with Windows 10) can you try to replicate Jose’s problem?
Not really, is kind of frustrating to see your Issues hanging there for months or Years. I will just stick to api 1. Feel free to create the issue if you need the fix.
DateTime uses the ICU library and as I remember it, if the version that Xojo is using is not aware of this change, it won’t be applied correctly. I suspect that Xojo will need to update their version of the ICU library to correct this problem.
Very plausible. As such Mexico change is very new, last October/2022.
Xojo ICU update must be done ASAP, in all releases, due to such dynamic nature of locales, time zones, language rules, date/time, currencies, etc.
After October ICU reached ICU v73 (march release). Stable with 2 minor updates. v73.2.
Since October lots of other world changes occurred too, those minor changes handle small fixes and updating those changes.
Update to the latest ICU v73.2 is extremely advisable.