Is there a way to get the user-preference Time Zone value from the Dwolla API?

98 views Asked by At

The Dwolla transaction "Date" field apparently uses this value for generating a timestamp, but I don't see any way to get the "Time Zone" preference from the API?

Zooming out, I'm trying to get the definitive/comparable date for a transaction, but I need to know the timezone of the date string.

2

There are 2 answers

9
Matt Johnson-Pint On

While this method doesn't state what the time zone is, others like this one make it clear that the dates are in UTC, so I would guess that all dates are in UTC throughout the API.

The only thing I don't like about their API is they are showing example dates like:

"Date": "8/31/2011 10:19:09 AM"

It's not very smart of them to use M/D/YYYY format, nor to use a 12-hour clock. This is better represented by "2011-08-31T10:19:09Z", which is in ISO format and indicates UTC. If you ever get a chance to speak with them, you should recommend they use this format (ISO-8601).

Just be aware of this when you are parsing it, since the format they are using may or may not be the correct format for your current culture.

0
Tim Child On

Dwolla are making the change to the ISO timestamp on August 4th 2014

This change will be rolled out in 60 days from today, on 9:00 AM CT August 4th, 2014. If you need help making adjustments to your code to parse the new datetime format, let us know and we'll be glad to lend a hand.

https://discuss.dwolla.com/t/api-update-new-timestamp-format-for-clearingdate-parameter/401