I'm trying to make a block that will display the users that have contributed points this month by calling:

SELECT u.uid, u.name, u.picture, SUM(t.points) as period_points FROM userpoints_txn t
INNER JOIN users u ON u.uid = t.uid
WHERE DATE(FROM_UNIXTIME(t.time_stamp) ) > DATE_SUB(CURDATE(), interval DAY(curdate()) day)
GROUP BY u.uid
ORDER BY SUM(`points`) DESC

The problem is the block when displayed in any Admin screen displays the correct points based on my timezone (NZ), whereas the block when displayed on a content node displays the points based on GMT timezone.
Why are they different?

Comments

Robin Millette’s picture

Project: Drupal core » User Points
Version: 6.20 » 6.x-1.x-dev
Component: block.module » Code: userpoints

Moving to userpoints project's queue.

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.