Modified to use universal time

when querying database