# HG changeset patch # User Paul Aurich # Date 1234080739 0 # Node ID 150282919040408895b53537057d44ea3ee7678a # Parent 45c33d60c547b8dd223a52c5e616a80284d77b55 Actually display the buddy's local time. diff -r 45c33d60c547 -r 150282919040 libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Sun Feb 08 08:00:31 2009 +0000 +++ b/libpurple/protocols/jabber/buddy.c Sun Feb 08 08:12:19 2009 +0000 @@ -809,7 +809,7 @@ now_t += jbr->tz_off; now = gmtime(&now_t); - purple_notify_user_info_add_pair(user_info, _("Local Time"), purple_time_format(now)); + purple_notify_user_info_prepend_pair(user_info, _("Local Time"), purple_time_format(now)); } if(jbir) { if(jbir->idle_seconds > 0) { @@ -988,7 +988,7 @@ now_t += jbr->tz_off; now = gmtime(&now_t); - purple_notify_user_info_add_pair(user_info, _("Local Time"), purple_time_format(now)); + purple_notify_user_info_prepend_pair(user_info, _("Local Time"), purple_time_format(now)); } if(jbr->name && (jbir = g_hash_table_lookup(jbi->resources, jbr->name))) { @@ -1683,8 +1683,8 @@ if (resource_name && jbr) { if (type && !strcmp(type, "result")) { xmlnode *time = xmlnode_get_child(packet, "time"); - xmlnode *tzo = time ? xmlnode_get_child(packet, "tzo") : NULL; - xmlnode *utc = time ? xmlnode_get_child(packet, "utc") : NULL; + xmlnode *tzo = time ? xmlnode_get_child(time, "tzo") : NULL; + xmlnode *utc = time ? xmlnode_get_child(time, "utc") : NULL; if (tzo && utc) { char *timestamp = g_strdup_printf("%s %s", xmlnode_get_data(utc), xmlnode_get_data(tzo));