Gnus development mailing list
 help / color / mirror / Atom feed
From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: bug: negative time zones again
Date: 07 Nov 1998 23:43:13 -0500	[thread overview]
Message-ID: <2n7lx66bha.fsf@zsh.cs.rochester.edu> (raw)


 > From: Karl Kleinpaste <karl@jprc.com>
 > Subject: p0.41 MIME error
 > To: ding@gnus.org
 > Date: 07 Nov 1998 22:05:51 -500

 > From: Michael R Cook <cook@clearviewtech.com>
 > Subject: <blah blah>
 > To: ding@gnus.org
 > Date: 07 Nov 1998 14:51:34 -500

 > From: Stainless Steel Rat <ratinox@peorth.gweep.net>
 > Subject: Re: pop password
 > To: "(ding)" <ding@gnus.org>
 > Date: 07 Nov 1998 08:26:36 -500
 > Mail-Copies-To: never
 > Organization: The Happy Fun Ball Brigade

See, negative time zones are shown as "-500" instead of "-0500" as
other mailers (including at least gnus 5.5) do.

Lars fixed sign for negative time zones in v0.28, but not completely.

A patch is attached.

-- 
Shenghuo

:- cut ------
--- ChangeLog	1998/11/08 04:03:45	1.1
+++ ChangeLog	1998/11/08 04:08:20
@@ -1,3 +1,7 @@
+Sat Nov  7 23:07:24 1998  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+	* message.el (message-make-date): Fix for negative time zones.
+
 Sun Nov  8 01:00:16 1998  Lars Magne Ingebrigtsen  <larsi@menja.ifi.uio.no>
 
 	* gnus.el: Pterodactyl Gnus v0.41 is released.

--- message.el	1998/11/08 04:03:18	1.1
+++ message.el	1998/11/08 04:05:04
@@ -2644,7 +2644,8 @@
 	 (zone (nth 8 (decode-time now)))
 	 (sign "+"))
     (when (< zone 0)
-      (setq sign ""))
+      (setq sign "-")
+      (setq zone (- zone)))
     (concat
      (format-time-string "%d" now)
      ;; The month name of the %b spec is locale-specific.  Pfff.


                 reply	other threads:[~1998-11-08  4:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2n7lx66bha.fsf@zsh.cs.rochester.edu \
    --to=zsh@cs.rochester.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).