- Code: Select all
var date = new Date(2011, 06, 21);
This will call 2011, July (even though july is 07, the months start at 0, not 1 in AS3), 21st day
So this is fine so far, and I am looking to get 2011 July 21.
When I call upon scores using that new Date, this is what I get from BigDB
Scores["gZTt-PKyp0eyeFsM9l6yaA"] = {
Date:Wed Jul 20 18:00:00 GMT-0600 2011
Score:223
Username:"simplett3"
} (Version:1)
The interesting thing is, it reads "Wed Jul 20" when I have no scores saved for July 20, only one, today, July 21 / Thursday.
I looked at that key in BigDB "gZTt-PKyp0eyeFsM9l6yaA" and it shows the following:
Date | 2011-07-21 00:00:00
Username | simplett3
Score | 223
Also a picture:
So the score, and the user name, and even the BigDB key is beautiful but when I want to call it, it says its from Wed July 20 1800 hours. An entire day off (not to mention the time is off, but not worried as much about the time in this scenario)
Any idea what is going on here?
Thanks