# HG changeset patch # User Mark Doliner # Date 1181550497 0 # Node ID 43be5361c4dc17c73cad83d3705ab4c5c273cc9e # Parent 6d3d7ee05b064a87951abd77d36fb3a9b4b40ed7 Get rid of the oscar time offset. This was an attempt at making sure the "online since" tooltip for buddies in your buddy list was accurate even if your clock was wrong. However, it completely falls apart if you're signed in from more than one location. So I'm taking it out completely. If anyone wants to figure out a way to determine the offset between your local computer clock and the real time using some feature of the oscar protocol then feel free. In the mean time I'm fine with telling people to freaking fix their clock. Fixes #698. diff -r 6d3d7ee05b06 -r 43be5361c4dc libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Mon Jun 11 01:02:18 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Mon Jun 11 08:28:17 2007 +0000 @@ -1825,9 +1825,8 @@ signon = time(NULL) - info->sessionlen; if (!aim_sncmp(purple_account_get_username(account), info->sn)) { purple_connection_set_display_name(gc, info->sn); - od->timeoffset = signon - purple_presence_get_login_time(presence); - } - purple_prpl_got_user_login_time(account, info->sn, signon - od->timeoffset); + } + purple_prpl_got_user_login_time(account, info->sn, signon); /* Idle time stuff */ /* info->idletime is the number of minutes that this user has been idle */ @@ -2849,12 +2848,12 @@ g_free(tmp); if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) { - time_t t = userinfo->onlinesince - od->timeoffset; + time_t t = userinfo->onlinesince; oscar_user_info_add_pair(user_info, _("Online Since"), purple_date_format_full(localtime(&t))); } if (userinfo->present & AIM_USERINFO_PRESENT_MEMBERSINCE) { - time_t t = userinfo->membersince - od->timeoffset; + time_t t = userinfo->membersince; oscar_user_info_add_pair(user_info, _("Member Since"), purple_date_format_full(localtime(&t))); } diff -r 6d3d7ee05b06 -r 43be5361c4dc libpurple/protocols/oscar/oscar.h --- a/libpurple/protocols/oscar/oscar.h Mon Jun 11 01:02:18 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.h Mon Jun 11 08:28:17 2007 +0000 @@ -447,7 +447,6 @@ guint icontimer; guint getblisttimer; guint getinfotimer; - gint timeoffset; struct { guint maxwatchers; /* max users who can watch you */