[Pidgin] #3550: PurpleLog::time is wrong

Pidgin trac at pidgin.im
Sun Oct 14 12:17:04 EDT 2007


#3550: PurpleLog::time is wrong
--------------------------+-------------------------------------------------
 Reporter:  xpertbg       |       Type:  defect
   Status:  new           |   Priority:  minor 
Component:  pidgin (gtk)  |    Version:  2.2.1 
 Keywords:                |    Pending:  0     
--------------------------+-------------------------------------------------
 Hello,
 PurpleLog::time member is wrong with one hour. This is seen in the history
 plugin, which I modify. All other times look ok, but this one is one hour
 in the future. When I use the log viewer all times are ok because it uses
 PurpleLog::tm. Now is the strange part: if I make this:

 header = g_strdup_printf(_("<b>My Conversation with %s on %s ||
 %s:</b><br>"), alias,
 purple_date_format_full(localtime(&((PurpleLog *)logs->data)->time)),
 purple_date_format_full(((PurpleLog *)logs->data)->tm)
 );

 The time is OK, but if I use this:

 header = g_strdup_printf(_("<b>My Conversation with %s on %s ||
 %s:</b><br>"), alias,
 purple_date_format_full(localtime(&((PurpleLog *)logs->data)->time)),
 purple_date_format_full(((PurpleLog *)logs->data)->tm)
 );

 it is one hour in the future. In both cases it is the same from tm and
 time.
 Here is the result to get an idea:

 My Conversation with deizi on 14.10.2007 (нд) 18,50,06 EEST || 14.10.2007
 (нд) 18,50,06 EEST:
 (17,50,23) deizi:  ami dobyr e telefona
 My Conversation with deizi on 14.10.2007 (нд) 18,21,12 EEST || 14.10.2007
 (нд) 18,21,12 EEST:
 (18,21,32) xpert:
 zdr

 My locale is set to bg_BG.UTF-8 and the time zone is 'Europe/Sofia'
 I use Debian unstable i386.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/3550>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list