(GitHub #2) Fixed Pg time function.