From e4cc0ead9fb403ee429406eaaacda0afae5dd006 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 28 Jun 2013 13:20:35 -0500 Subject: Fix long-standing bug of Senders Current Time not refreshing --- kmail/headerstyle.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'kmail/headerstyle.cpp') diff --git a/kmail/headerstyle.cpp b/kmail/headerstyle.cpp index 7d0d6fc4..9e654d68 100644 --- a/kmail/headerstyle.cpp +++ b/kmail/headerstyle.cpp @@ -623,7 +623,7 @@ namespace KMail { int zone = origDate.Zone(); // kdDebug() << "FancyHeaderStyle::format() zone offset (in minutes): " << zone << endl; - // copyed fro mimelib -- code to determine local timezone + // copyed from mimelib -- code to determine local timezone time_t t_now = time((time_t*) 0); #if defined(HAVE_GMTIME_R) struct tm utc; @@ -642,7 +642,6 @@ namespace KMail { t_utc = 24 * t_utc + utc.tm_hour; t_utc = 60 * t_utc + utc.tm_min; t_utc = 60 * t_utc + utc.tm_sec; - int lzone = (int) (t_local - t_utc) / 60; // kdDebug() << "FancyHeaderStyle::format() local zone offset (in minutes): " << lzone << endl; @@ -705,7 +704,7 @@ namespace KMail { // kdDebug() << "FancyHeaderStyle::format() current time: " << currTime << " (" << timeofday << ")" << endl; timeHTML.append( TQString( - "
%4
%5
%6
" ) -- cgit v1.2.3