WordPress – Counterize Web Stats Date Is Incorrect

Counterize II stats for “Today” in the WordPress admin dashboard were reseting back to zero in the middle of the day!

This is because the php script is querying the database for those stats based on the web server’s timezone, which was UTC, in my case. I needed the script to query based on my timezone. It was a very easy fix:

Somewhere in the beginning of the counterize.php script, add the line:


Of course, change the America/Chicago to your timezone.

Leave a Reply