getResult() returns 1

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
username55
Posts: 6
Joined: Mon Aug 30, 2021 7:24 am

getResult() returns 1

Post by username55 »

The following code used to return the information from the punch, now it just returns a value of 1. Any ideas?

$result = $punch_obj->setPunch( $punch_data );
$filter = array( 'filter_data' => array('user_id' => $userID,'time_stamp' => time())); //filters request
$user_data = $punch_obj->getPunch($filter)->getResult();
username55
Posts: 6
Joined: Mon Aug 30, 2021 7:24 am

Re: getResult() returns 1

Post by username55 »

Nevermind. It turns out I was using time_stamp for a filter with getPunch instead of start_date and end_date. I'm not sure why it decided to screw up today and not at any time before.
Post Reply