Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Future UpdatedDateUTC dates on demo org contacts after account reset

Started by Robert Sinton -   in API Endpoints


Just spent a couple of rather frustrating hours trying to debug an API update logic issue, to find that the reason seems to be due to invalid UpdatedDateUTC timestamps on demo org contacts.

I'm using a demo account at this stage of development, and it hit its 28 day reset point over the weekend.

From logs I can see that my integration was unable to connect to the demo org from 2019-07-07 02:03:02 UTC onwards, having connected OK 60 seconds prior, so that sets the mark for the reset time.

Since re-establishing contact, I can see that the demo customers in the demo org all now have an UpdatedDateUTC value of 1562609022037, which equates to 2019-07-08 18:03:42 UTC, i.e. just over 40 hours _after_ the reset (and, as of right now, still 13 hours in the future!)

This throws my update logic out of whack, as once it has downloaded those contacts it uses If-Modified-Since to ask only for updates after those ones.

I see that issues were raised some years back about odd UpdatedDateUTC values on demo contacts (https://community.xero.com/developer/discussion/4499427/, https://community.xero.com/developer/discussion/67681/), but in this case all the demo contacts have the exact same value.

Might be time to check the demo org setup script again? Doesn't seem to be as simple as a timezone issue, given the 40-hour difference between the reset time and the UpdatedDateUTC values.