Dates in API Query

Hi there,

I’d just like to check which timezone the dates are returned from when querying the API? Are the dates local to the Business Location (branch), or are they returned in UTC time?

Thanks,

Justin

Hi Justin,

Which dates are you referring to? (which properties on which API endpoints)

cheers,
Paul.

Hi Paul,

In particular the Timesheets Endpoint - (/api/v2/business/{businessid}/timesheet)

  • startTime
  • endTime
  • breaks startTime
  • breaks endTime

Do any of the other endpoints differ?

Thanks,

Justin

Hi Justin,

Apologies for the delay in my reply.

The times for timesheets are actually timezone agnostic. KeyPay doesn’t care what timezone they are in. So, for example, if the employee’s shift started at 9am Sydney time on 30/11, you would pass through ‘2015-11-30T09:00’

If the employee’s shift started at 9am Western Australian time, you would still pass through ‘2015-11-30T09:00’

regards,
Paul

Thanks Paul,

That’s great news.

Justin

Hello Paul,

Wondering if Keypay is timezone agnostic for the endpoint of /api/v2/business/{businessid}/leaverequest and other endpoints as well?

Cheers,
Jason

Hi Jason,

Yes, it is timezone agnostic.

cheers
Paul.