Thread Tools Display Modes
03-25-16, 11:59 PM   #1
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
CalendarGetDate() returning nothing

When I open the game and run CalendarGetDate(), it returns 0,0,0,1999. However, if I reload the UI it returns normal data. In fact, logging out (not exiting the game) will also return normal data. This only happens when I open the game and login for the first time.

I'm running this function as ADDON_LOADED is triggered.
  Reply With Quote
03-26-16, 12:09 AM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Have you tried PLAYER_ENTERING_WORLD instead?
  Reply With Quote
03-26-16, 12:15 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
or possibly PLAYER_LOGIN which only fires once?
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-26-16 at 12:21 AM.
  Reply With Quote
03-26-16, 12:24 AM   #4
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Thank you for both of your replies. Both did the trick, but FizzleMizz's suggestion is exactly what I'm looking for!
  Reply With Quote
03-26-16, 12:56 AM   #5
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
I was thinking PLAYER_LOGIN, and went too far. At least you got it now.
  Reply With Quote
03-26-16, 01:47 AM   #6
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
What is the reason you are using CalendarGetDate() instead of date()?
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » CalendarGetDate() returning nothing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off