* Always add a timezone field to the date message, before that was only done
if there was an actual shift. * Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33606 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -743,15 +743,8 @@ BEmailMessage::RenderToRFC822(BPositionIO *file)
|
|||||||
"%a, %d %b %Y %H:%M:%S", &tm);
|
"%a, %d %b %Y %H:%M:%S", &tm);
|
||||||
|
|
||||||
// GMT offsets are full hours, yes, but you never know :-)
|
// GMT offsets are full hours, yes, but you never know :-)
|
||||||
if (tm.tm_gmtoff) {
|
snprintf(date + length, sizeof(date) - length, " %+03d%02d",
|
||||||
#ifndef HAIKU_TARGET_PLATFORM_BEOS
|
tm.tm_gmtoff / 3600, (tm.tm_gmtoff / 60) % 60);
|
||||||
snprintf(date + length, sizeof(date) - length, " %+03d%02d",
|
|
||||||
tm.tm_gmtoff / 3600, (tm.tm_gmtoff / 60) % 60);
|
|
||||||
#else
|
|
||||||
sprintf(date + length, " %+03d%02d",
|
|
||||||
tm.tm_gmtoff / 3600, (tm.tm_gmtoff / 60) % 60);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
SetHeaderField("Date", date);
|
SetHeaderField("Date", date);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user