Fixed time zone bug with the new PHP version.
Fixed a variable bug with ratings in stats.