* 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:
Axel Dörfler 2009-10-16 06:33:41 +00:00
parent 18ba9ea5c9
commit 7840f0faf5
1 changed files with 13 additions and 20 deletions

View File

@ -743,15 +743,8 @@ BEmailMessage::RenderToRFC822(BPositionIO *file)
"%a, %d %b %Y %H:%M:%S", &tm);
// GMT offsets are full hours, yes, but you never know :-)
if (tm.tm_gmtoff) {
#ifndef HAIKU_TARGET_PLATFORM_BEOS
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);
}