Hi,
I have made the time zone correction mod for MSFS 2020 and 2024, and I have a question with the SDK about the day of week since it is a factor on when I have DST start or end. According to the SDK in the Environmental Variables section under Programming APIs, ZULU DAY OF WEEK is a number between 0 and 6, with Sunday being 0, and Saturday being 6. But when I use either 0 and 1 for the dstStartDayOfTheWeek or dstEndDayOfTheWeek, it erroneously sees 0 as Tuesday, and 1 as Wednesday, which results in DST in Europe ending on October 28 (Tuesday if 0) or October 29 (Wednesday if 1) instead of October 26 (Sunday), which I have to set it as 5
Can you provide some code snippet related to how you are using the SimVar?
Best regards,
Eric / Asobo
Hi,
Here it is:
<!--Madeira and Porto Santo-->
<TimeZone
latitudeMinimum = "30.0"
latitudeMaximum = "35.0"
longitudeMinimum = "-18.25"
longitudeMaximum = "-14.0"
timedeviation = "0"
priority = "2"
dstStartMonth="3"
dstStartDayOfTheWeek="0"
dstStartDayOfTheMonth="25"
dstStartRule="DST_RULE_ON_OR_AFTER_DAY"
dstEndMonth="10"
dstEndDayOfTheWeek="0"
dstEndDayOfTheMonth="25"
dstEndRule="DST_RULE_ON_OR_AFTER_DAY"
dstTimeDiffDuringDST="60"
dstTimeDiffOutsideDST="0"/>
Hi. Thought I’d follow up for an update on this.
Hi,
Apologies for bringing this up again. Is there any update to the sim variables for the Day of the Week being fixed to how it’s supposed to be (Sun=0, Mon=1, Tue= 2, and so on)? I remember back in SU2, I don’t think the Daylight Savings for the time zones were off even without the time zone fixer.