mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
(gtk) #833: "Last scrape/announce at" shows wrong time
This commit is contained in:
parent
f73bf96299
commit
41b50abfa9
2 changed files with 2 additions and 2 deletions
|
@ -1144,7 +1144,7 @@ refresh_time_lb( GtkWidget * l, time_t t )
|
||||||
if( !t )
|
if( !t )
|
||||||
gtk_label_set_text( GTK_LABEL( l ), never );
|
gtk_label_set_text( GTK_LABEL( l ), never );
|
||||||
else {
|
else {
|
||||||
char * str = rfc822date( t * 1000 );
|
char * str = rfc822date( (guint64)t * 1000 );
|
||||||
gtk_label_set_text( GTK_LABEL( l ), str );
|
gtk_label_set_text( GTK_LABEL( l ), str );
|
||||||
g_free( str );
|
g_free( str );
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ doSave( GtkWindow * parent,
|
||||||
gtk_tree_model_get( model, &iter,
|
gtk_tree_model_get( model, &iter,
|
||||||
COL_TR_MSG, &node,
|
COL_TR_MSG, &node,
|
||||||
-1 );
|
-1 );
|
||||||
date = rfc822date( node->when*1000u );
|
date = rfc822date( (guint64)node->when * 1000u );
|
||||||
switch( node->level ) {
|
switch( node->level ) {
|
||||||
case TR_MSG_DBG: levelStr = "debug"; break;
|
case TR_MSG_DBG: levelStr = "debug"; break;
|
||||||
case TR_MSG_ERR: levelStr = "error"; break;
|
case TR_MSG_ERR: levelStr = "error"; break;
|
||||||
|
|
Loading…
Reference in a new issue