problem: unable to get accurate time of last login for current visitor
ive tried to retrieve this information using several different methods:
{exp:timesince}<?php global $SESS; echo $SESS->userdata['last_visit']; ?>{/exp:timesince}
the above method gives me “4 hours 9 minutes ago”
{exp:timesince}{exp:member:custom_profile_data}{last_visit}{/exp:member:custom_profile_data}{/exp:timesince}
the above method gives me “38 years, 8 months ago “
{exp:timesince}{exp:member:custom_profile_data member_id=logged_in_member_id}{last_visit}{/exp:member:custom_profile_data}{/exp:timesince}
the above method gives me “38 years, 8 months ago”
{exp:timesince}{exp:member:custom_profile_data member_id=2}{last_visit}{/exp:member:custom_profile_data}{/exp:timesince}
the above method gives me “38 years, 8 months ago”
in all cases, ive just logged out and then logged back in again, so i expect the values of all four methods above to be something like “1 minute ago”. what’s wrong?
