square / connect-csharp-sdk

C# client library for the Square Connect APIs
https://docs.connect.squareup.com/
Apache License 2.0
27 stars 25 forks source link

Timezones #116

Closed jmawebtech closed 5 years ago

jmawebtech commented 5 years ago

Hi,

When your plugin returns the V1Payment created at field, is the timezone PST or UTC? If I query payments by date created, should I use UTC time or PST?

StephenJosey commented 5 years ago

All dates and times returned by our APIs are UTC: https://docs.connect.squareup.com/api/connect/v2#workingwithdates

You can offset the dates in a particular request to work with a particular timezone (see tech ref link above).