unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Unknown <unknown@unknown.invalid>
To: 44566@debbugs.gnu.org
Subject: bug#44566: 27.1; time bug at Gnus
Date: Wed, 11 Nov 2020 14:28:49 +0100	[thread overview]
Message-ID: <87blg481ke.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <87h7pw82jd.fsf@tullinup.koldfront.dk> ("Adam Sjøgren"'s message of "Wed, 11 Nov 2020 14:07:50 +0100")

Adam writes:

> the nntp-server in question is one I have implemented, and I think
> it's more likely that my nntp-server doesn't handle timezones/follow
> the spec correctly than Gnus being at fault.

Specifically my code is using Data.Time.Format¹s defaultTimeLocale and
rfc822DateFormat, which doesn't seem to use the restricted list of
timezones defined in rfc(2)822:

  $ ghci
  GHCi, version 8.8.4: https://www.haskell.org/ghc/  :? for help
  Prelude> import Data.Time.LocalTime
  Prelude Data.Time.LocalTime> import Data.Time.Format
  Prelude Data.Time.LocalTime Data.Time.Format> now <- getZonedTime
  Prelude Data.Time.LocalTime Data.Time.Format> formatTime defaultTimeLocale rfc822DateFormat now
  "Wed, 11 Nov 2020 14:23:39 CET"

Despite the documentation saying:

   defaultTimeLocale :: TimeLocale

     Locale representing American usage.

     knownTimeZones contains only the ten time-zones mentioned in RFC 802
     sec. 5: "UT", "GMT", "EST", "EDT", "CST", "CDT", "MST", "MDT", "PST",
     "PDT". Note that the parsing functions will regardless parse "UTC",
     single-letter military time-zones, and +HHMM format.


¹ https://hackage.haskell.org/package/time-1.9.3/docs/Data-Time-Format.html#g:3





  reply	other threads:[~2020-11-11 13:28 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11  2:55 bug#44566: 27.1; time bug at Gnus 황병희
2020-11-11  3:12 ` 황병희
2020-11-11  7:13 ` 황병희
2020-11-11  9:54   ` Unknown
2020-11-11 10:35     ` 황병희
2020-11-11  9:56 ` Lars Ingebrigtsen
2020-11-11 10:39   ` 황병희
2020-11-11 11:14     ` Lars Ingebrigtsen
2020-11-11 11:41       ` 황병희
2020-11-11 11:45         ` Lars Ingebrigtsen
2020-11-11 11:59           ` 황병희
2020-11-11 12:03             ` Lars Ingebrigtsen
2020-11-11 12:12               ` Lars Ingebrigtsen
2020-11-11 12:19                 ` 황병희
2020-11-11 12:47                 ` Andreas Schwab
2020-11-12 12:45                   ` Lars Ingebrigtsen
2020-11-11 13:07           ` Unknown
2020-11-11 13:28             ` Unknown [this message]
2020-11-11 13:48               ` Unknown
2020-11-11 14:18                 ` 황병희
2020-11-11 11:42       ` Peder O. Klingenberg
2020-11-11 11:51         ` Andreas Schwab
2020-11-11 13:25           ` Peder O. Klingenberg
2020-11-12 12:11             ` Lars Ingebrigtsen
2020-11-11 11:57         ` Lars Ingebrigtsen
2020-11-11 12:22         ` 황병희
2020-12-12 13:20 ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87blg481ke.fsf@tullinup.koldfront.dk \
    --to=unknown@unknown.invalid \
    --cc=44566@debbugs.gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).