1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

(gtk) #833: "Last scrape/announce at" shows wrong time

This commit is contained in:
Charles Kerr 2008-04-02 23:18:45 +00:00
parent f73bf96299
commit 41b50abfa9
2 changed files with 2 additions and 2 deletions

View file

@ -1144,7 +1144,7 @@ refresh_time_lb( GtkWidget * l, time_t t )
if( !t )
gtk_label_set_text( GTK_LABEL( l ), never );
else {
char * str = rfc822date( t * 1000 );
char * str = rfc822date( (guint64)t * 1000 );
gtk_label_set_text( GTK_LABEL( l ), str );
g_free( str );
}

View file

@ -97,7 +97,7 @@ doSave( GtkWindow * parent,
gtk_tree_model_get( model, &iter,
COL_TR_MSG, &node,
-1 );
date = rfc822date( node->when*1000u );
date = rfc822date( (guint64)node->when * 1000u );
switch( node->level ) {
case TR_MSG_DBG: levelStr = "debug"; break;
case TR_MSG_ERR: levelStr = "error"; break;