summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-06-29 14:02:33 +0000
committerkrion <krion@FreeBSD.org>2004-06-29 14:02:33 +0000
commit32c3cb06d9dda7ef45a70cbee213668d1b3a7788 (patch)
treea6d2ba23e2524b8f6cb0cb83cf9edf45d5043a83
parenta80ec59f64f04b37ee18c960d7135ea324fc865d (diff)
downloadFreeBSD-ports-32c3cb06d9dda7ef45a70cbee213668d1b3a7788.zip
FreeBSD-ports-32c3cb06d9dda7ef45a70cbee213668d1b3a7788.tar.gz
Fix the timezone handling of the "conditional date"-patch
PR: ports/68477 Submitted by: maintainer
-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 be18c6e..553a075 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;
OpenPOWER on IntegriCloud