summaryrefslogtreecommitdiffstats
path: root/kmail/headerstyle.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-28 13:20:35 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-28 13:20:35 -0500
commite4cc0ead9fb403ee429406eaaacda0afae5dd006 (patch)
treeb94243e7f4f2c52886aa069fddfcf74e29a6e590 /kmail/headerstyle.cpp
parent5f8b00b9567d41d1f4681e2240528b9fce2d7b3b (diff)
downloadtdepim-e4cc0ead9fb403ee429406eaaacda0afae5dd006.tar.gz
tdepim-e4cc0ead9fb403ee429406eaaacda0afae5dd006.zip
Fix long-standing bug of Senders Current Time not refreshing
Diffstat (limited to 'kmail/headerstyle.cpp')
-rw-r--r--kmail/headerstyle.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/kmail/headerstyle.cpp b/kmail/headerstyle.cpp
index 7d0d6fc4b..9e654d68c 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(
- "<div style=\""
+ "<div id=\"sendersCurrentTime\" style=\""
"border:1px solid %1;"
"color:%2;"
"background-image:%3;"
@@ -714,8 +713,8 @@ namespace KMail {
"text-align:center;"
"font-size:12px;"
"padding:2px;"
- "width:140px;"
- "height:50px;"
+ "width:150px;"
+ "height:45px;"
"margin: 0px 0px 3px 0px;"
"\" class=\"curtime\">%4<br />%5<br />%6</div>"
)