diff options
author | krion <krion@FreeBSD.org> | 2004-06-29 22:02:33 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-06-29 22:02:33 +0800 |
commit | 32c3cb06d9dda7ef45a70cbee213668d1b3a7788 (patch) | |
tree | a6d2ba23e2524b8f6cb0cb83cf9edf45d5043a83 /mail | |
parent | a80ec59f64f04b37ee18c960d7135ea324fc865d (diff) | |
download | freebsd-ports-gnome-32c3cb06d9dda7ef45a70cbee213668d1b3a7788.tar.gz freebsd-ports-gnome-32c3cb06d9dda7ef45a70cbee213668d1b3a7788.tar.zst freebsd-ports-gnome-32c3cb06d9dda7ef45a70cbee213668d1b3a7788.zip |
Fix the timezone handling of the "conditional date"-patch
PR: ports/68477
Submitted by: maintainer
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mutt-devel/files/patch-date-conditional | 9 |
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; |