Reply To: FireStats – Top 40 php script (now with added charts)

#14862
sonichouse
Participant

@wwarren wrote:

Odd. I’m playing a little late night music and checked to see if I still had the timezone problem. Its currently 2am on 1/24. I’ve refreshed my charts and the “played” tab shows the last songs played on 1/24 which is correct, but the “summary” tab shows that those albums played 6 hours earlier on 1/23.

OK, the summary function needs to set the offset as well by the look of it.
The best thing to try is to move the date_default_timezone_set(“America/Chicago”); call to inside the getDatabase() function – that way it will always be set.

Can you try that, and I will amend accordingly – thanks.