summaryrefslogtreecommitdiff
path: root/mail/mutt-devel/files/patch-date-conditional
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-06-29 14:02:33 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-06-29 14:02:33 +0000
commit529c3852389687c02170b1342cd46d572ad70083 (patch)
treedce572498188fb149a342d4c6d11f443b135bb7e /mail/mutt-devel/files/patch-date-conditional
parentAdd patch which disables annoying log warnings when only auth (diff)
Fix the timezone handling of the "conditional date"-patch
PR: ports/68477 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=112551
Diffstat (limited to 'mail/mutt-devel/files/patch-date-conditional')
-rw-r--r--mail/mutt-devel/files/patch-date-conditional9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/mutt-devel/files/patch-date-conditional b/mail/mutt-devel/files/patch-date-conditional
index be18c6eb8603..553a07563563 100644
--- a/mail/mutt-devel/files/patch-date-conditional
+++ b/mail/mutt-devel/files/patch-date-conditional
@@ -78,9 +78,9 @@ Index: muttlib.c
if (flags & M_FORMAT_OPTIONAL)
{
---- hdrline.c.orig Thu Jun 24 11:16:36 2004
-+++ hdrline.c Thu Jun 24 11:43:28 2004
-@@ -316,6 +316,63 @@
+--- hdrline.c.orig Tue Jun 29 15:01:28 2004
++++ hdrline.c Tue Jun 29 15:02:59 2004
+@@ -316,6 +316,64 @@
const char *cp;
struct tm *tm;
time_t T;
@@ -90,7 +90,8 @@ Index: muttlib.c
+ char *is;
+ int d;
+ T = time(NULL);
-+ d = T % 86400;
++ tm = localtime(&T);
++ d = (T + tm->tm_gmtoff) % 86400;
+ T -= (op == '(') ? hdr->received : hdr->date_sent;
+
+ is = (char *)prefix;