Ray Proudfoot Posted September 7, 2021 Report Posted September 7, 2021 Hi John / Pete, In the FSUIPC Offsets PDF there is an entry for Zulu Day of Week. Reading this value and together with other offsets and a bit of code I can display Mon, Tue, Wed etc in a LUA display on a wideFS PC. I find this helpful when checking Ai timetables as I can see the local time and date in FS. See attached image. However, the Zulu Day Of Week value has no corresponding Local Day of Week value. So, for example if I'm located in Hawaii or New Zealand at certain UK times the Zulu Day of Week value is for the wrong day. It shows my day of week rather than the local day of week. I appreciate if there's no value in P3D you can't extract it. But is there any way it can be coded in LUA to show the correct day of week?
John Dowson Posted September 7, 2021 Report Posted September 7, 2021 Hi Ray, there is a Local Day of Week simvar that I can add to an offset. Give me a day or two and I'll post an updated dll here for you to try (FSUIPC6). Otherwise you could look into lua functions to convert a zulu time to another timezone, then extract the day, but I'm not sure what lua API/functions you would need to do this without investigating. 1
Ray Proudfoot Posted September 7, 2021 Author Report Posted September 7, 2021 Hi John, That's very kind of you thanks.
John Dowson Posted September 7, 2021 Report Posted September 7, 2021 Please try the following dll - Local Day of Week has been added to offset 0x026C as an unsigned byte (UB): FSUIPC6.dll
Ray Proudfoot Posted September 7, 2021 Author Report Posted September 7, 2021 Thanks John, works a treat as shown with the aircraft parked at Honolulu - 10 hours behind GMT/UT.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now