Tigase sets lastSeen field in roster element to current time each time it receives a presence notification from this contact. Line 1328 in file: tigase.xmpp.impl.Presence:
if ((rel != null) && (rel instanceof RosterElement)) {
((RosterElement) rel).setLastSeen(System.currentTimeMillis());
}