Dates in API Query


#1

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


#2

Hi Justin,

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

cheers,
Paul.


#3

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


#4

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


#5

Thanks Paul,

That’s great news.

Justin


#6

Hello Paul,

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

Cheers,
Jason


#7

Hi Jason,

Yes, it is timezone agnostic.

cheers
Paul.