Talk:API C DateAndTime.GetCurrentCalendarTime

From Warcraft Wiki
Jump to navigation Jump to search

This API call is not ready to use immediately when first logging in

I've found that I get back a 0/0/1999 date if my addon immediately uses this call during the first login after launching WoW.

Subsequent Reloads and even character logout/logins wont trigger it, only the first login after launching. I've tracked it down to the UPDATE_ALL_UI_WIDGETS event where the api call starts working, notably I have only observed this event on the first login as well! I'm leaving this as a comment if someone else encounters an issue in this space and is able to replicate, in the meantime I will work with that event and hopefully work around the API behaviour AlternativeTheory (talk) 01:03, 3 June 2024 (UTC)