Last Logout in openfire console is not updating properly

Hello,

   I am using openfire server for chat based application. **For logout from my application I am simply disconnecting my stream, It works for all aspects as my unavailable presence is set on console and sent to other users as well but last logout is not updating on console,It shows more then 1 hour before and the same I am getting in xep-0012**. My code is as below,
  • (void)xmppDisconnect
    {

    if (!_xmppStream || [_xmppStream isDisconnected])

return;

[self goOffline];

[_xmppStream disconnect];

}

Can there be anything wrong in my server settings or configuration?

It works properly for android devices.