AnsweredAssumed Answered

API returns different 'last online date'

Question asked by IngoGuther1354526 on Jun 12, 2018
Latest reply on Jun 15, 2018 by IngoGuther1354526

I was looking around for an endpoint that returns the last online timestamp of an user and found /organizations/:org/audits/users which returns the following:

 

{
"id":000000,
"nick":"TEST",
"email":"x@x.x",
"avatar":"https://d2cxspbh1aoie1.cloudfront.net/avatars/local/***",
"name":"xxxx",
"website":"",
"admin":false,
"authorizations":[
{
"uid":"xxxx",
"provider":"google",
"email":"x@x.x"
}
],
"accessed_at":"2018-03-01T19:02:07.215Z",
"is_add_on":true
},

 

Turns out the timestamp accessed_at is completly different from the timestamp you can see in the FD App.
The above user shows as Offline since May 29 in the App. Then I checked the admin panel just to find out that the timestamp is different as well but seems to be same as the API returns: Last active: 3 months ago

 

So what exactly is going wrong there and why do we have two different timestamps? Also which one is actually returning the correct timestamp?

 

Outcomes