🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
34 messages
34 total messages Started by Michael Baeuerle Mon, 19 Oct 2015 15:56
Time zone for "Date" header field
#87089
Author: Michael Baeuerle
Date: Mon, 19 Oct 2015 15:56
33 lines
2252 bytes
Background:
flnews currently always add a "Date" header field itself and use the
timezone "-0000". According to RFC5322 (that is referenced by RFC5536)
this means "I don't know" in contrast to "+0000" which means "local time
really has no deviation from GMT".

In the german test group there is currently a discussion about date
in the introduction line, e.g. something like:
| 
| At 2015-10-17 14:10:00 -0000 Michael Bäuerle wrote:

It was noted that it would be more informative when the real timezone of
the person, who wrote the quoted text, would be in this line.
And in RFC5536 there really is the recommendation that local time
*SHOULD* be used. Therefore I consider to change the behaviour of flnews
to insert local time for "Date" and stay with "-0000" for "Injection-
Date" (if created too for the cases the injecting agent is not allowed
to do it).
[End of background]


If the posting agent don't set a "Date" header field (e.g. tin behave
like this) the injecting agent must do it and INN insert a time with
timezone "+0000 (UTC)"¹.
Question to Julien: Why is INN using "+0000" here and not "-0000"?

The same for "Injection-Date" header field.


__________________
¹) Tested with Mixmin running INN 2.7.0 (20151019 prerelease)

Re: Time zone for "Date" header field
#87091
Author: Julien ÉLIE
Date: Mon, 19 Oct 2015 20:40
27 lines
2216 bytes
Hi Michael,

> flnews currently always add a "Date" header field itself and use the
> timezone "-0000". According to RFC5322 (that is referenced by RFC5536)
> this means "I don't know" in contrast to "+0000" which means "local time
> really has no deviation from GMT".
>
> If the posting agent don't set a "Date" header field (e.g. tin behave
> like this) the injecting agent must do it and INN insert a time with
> timezone "+0000 (UTC)".
> Question to Julien: Why is INN using "+0000" here and not "-0000"?

Probably because that code predates RFC 5322.

We once had that discussion about signcontrol.py here and I remember 
that Adam had a point about "what if the host is actually in London when 
Standard Time is observed?"
Then "-0000", though acceptable, is not better than "+0000".

-- 
Julien ÉLIE

« Je vais t'apprendre à chasser… Nous commencerons par les
   marcassins, et puis ensuite, nous passerons aux patrouilles romaines,
   et enfin aux sangliers ! » (Astérix)

Re: Time zone for "Date" header field
#87095
Author: Russ Allbery
Date: Mon, 19 Oct 2015 21:11
23 lines
1883 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Probably because that code predates RFC 5322.

> We once had that discussion about signcontrol.py here and I remember that
> Adam had a point about "what if the host is actually in London when
> Standard Time is observed?"

> Then "-0000", though acceptable, is not better than "+0000".

I think changing to -0000 would make sense, though, since the server has
no idea what time zone the client is in, and I believe the time zone in
the Date header field is supposed to be that of the client, not the
server.  (signcontrol.py, being a client, is a somewhat different
problem.)

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: Time zone for "Date" header field
#87097
Author: Michael Baeuerle
Date: Tue, 20 Oct 2015 08:42
19 lines
1827 bytes
Russ Allbery wrote:
> Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> > 
> > Probably because that code predates RFC 5322.
> > 
> > We once had that discussion about signcontrol.py here and I remember that
> > Adam had a point about "what if the host is actually in London when
> > Standard Time is observed?"
> > 
> > Then "-0000", though acceptable, is not better than "+0000".
> 
> I think changing to -0000 would make sense, though, since the server has
> no idea what time zone the client is in, and I believe the time zone in
> the Date header field is supposed to be that of the client, not the
> server.

In contrast to "Injection-Date", that is within the scope of the server.

Re: Time zone for "Date" header field
#87100
Author: Russ Allbery
Date: Tue, 20 Oct 2015 17:38
21 lines
1856 bytes
Michael Baeuerle <michael.baeuerle@stz-e.de> writes:
> Russ Allbery wrote:

>> I think changing to -0000 would make sense, though, since the server
>> has no idea what time zone the client is in, and I believe the time
>> zone in the Date header field is supposed to be that of the client, not
>> the server.

> In contrast to "Injection-Date", that is within the scope of the server.

True, that probably could stay +0000 or use the local time zone of the
server.  (I can imagine a few people who might not want to disclose the
time zone of the server for one reason or another.)

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: Time zone for "Date" header field
#87110
Author: Julien ÉLIE
Date: Thu, 22 Oct 2015 19:45
23 lines
1973 bytes
>> If the posting agent don't set a "Date" header field (e.g. tin behave
>> like this) the injecting agent must do it and INN insert a time with
>> timezone "+0000 (UTC)".
>> Question to Julien: Why is INN using "+0000" here and not "-0000"?
>
> Probably because that code predates RFC 5322.

As a matter of fact, RFC 1036 says in Section 2.1.2:
   https://www.ietf.org/rfc/rfc1036.txt

     It is recommended that times in message headers be
     transmitted in GMT and displayed in the local time zone.

I bet that is the reason why nnrpd uses UTC when it adds a Date: header 
field that is missing in the post.

-- 
Julien ÉLIE

« La vérité pure et simple est très rarement pure et jamais
   simple. » (Oscar Wilde)

Re: Time zone for "Date" header field
#87111
Author: Julien ÉLIE
Date: Thu, 22 Oct 2015 19:46
43 lines
2908 bytes
Hi Russ,

>>> I think changing to -0000 would make sense, though, since the server
>>> has no idea what time zone the client is in, and I believe the time
>>> zone in the Date header field is supposed to be that of the client, not
>>> the server.
>
>> In contrast to "Injection-Date", that is within the scope of the server.
>
> True, that probably could stay +0000 or use the local time zone of the
> server.  (I can imagine a few people who might not want to disclose the
> time zone of the server for one reason or another.)

For the Injection-Date: header field, why couldn't it become -0000 
instead of +0000?

We currently have the "localtime" parameter in readers.conf, with the 
following behaviour:

     If a Date: header is not included in a posted article, nnrpd(8)
     normally adds a new Date: header in UTC.  If this is set to true,
     the Date: header will be formatted in local time instead.  This is
     a boolean value and the default is false.

I suggest that for INN 2.6.1, the behaviour of the "localtime" parameter 
be extended to the Injection-Date: header field.  And for UTC, it uses 
"-0000" instead of "+0000".

I also suggest that for INN 2.7.0 (and for those who use CURRENT, 
because INN 2.7.0 is not expected before a few years), the default value 
of the "localtime" parameter changes to "true", that is to say using the 
local time zone by default.


Would it satisfy you?  And Michael?

-- 
Julien ÉLIE

« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
   (Aristophane)

Re: Time zone for "Date" header field
#87112
Author: Russ Allbery
Date: Thu, 22 Oct 2015 19:51
58 lines
3812 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

>> True, that probably could stay +0000 or use the local time zone of the
>> server.  (I can imagine a few people who might not want to disclose the
>> time zone of the server for one reason or another.)

> For the Injection-Date: header field, why couldn't it become -0000 instead
> of +0000?

None of this is particularly important, so it doesn't really matter, but
-0000 implies that UTC is the local time zone of the server, whereas +0000
doesn't carry that implication.

I'm not sure there's any point in disclosing the local time zone of the
server.  It's a pretty meaningless piece of data.  If we just always use
UTC and always use +0000 for Injection-Date, we avoid the complexity and
have a nice, simple algorithm, and I don't think we lose anything
important.

> We currently have the "localtime" parameter in readers.conf, with the
> following behaviour:

>     If a Date: header is not included in a posted article, nnrpd(8)
>     normally adds a new Date: header in UTC.  If this is set to true,
>     the Date: header will be formatted in local time instead.  This is
>     a boolean value and the default is false.

> I suggest that for INN 2.6.1, the behaviour of the "localtime" parameter
> be extended to the Injection-Date: header field.  And for UTC, it uses
> "-0000" instead of "+0000".

> I also suggest that for INN 2.7.0 (and for those who use CURRENT,
> because INN 2.7.0 is not expected before a few years), the default value
> of the "localtime" parameter changes to "true", that is to say using the
> local time zone by default.

I'm not sure why we would do that?

Basically, this claims that the local time of the client (which the client
chose not to disclose for whatever reason) is the local time of the
server.  That seems like a bad default for a number of reasons.  One is
that it's a (mild) privacy leak if it is true.  Another is that it's often
simply not true.  A good example would be most news.individual.net
customers.

I see the localtime parameter as a tool for people who *want* to disclose
their local time zone (it can be useful information in certain types of
discussions), but whose clients don't for some reason, and who can arrange
for the server to be in the same time zone as the client.  We can keep
supporting that option, but that's a relatively unusual corner case.

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: Time zone for "Date" header field
#87114
Author: Julien ÉLIE
Date: Thu, 22 Oct 2015 20:13
53 lines
3459 bytes
Hi Russ,

>>> True, that probably could stay +0000 or use the local time zone of the
>>> server.  (I can imagine a few people who might not want to disclose the
>>> time zone of the server for one reason or another.)
>
>> For the Injection-Date: header field, why couldn't it become -0000 instead
>> of +0000?
>
> None of this is particularly important, so it doesn't really matter, but
> -0000 implies that UTC is the local time zone of the server, whereas +0000
> doesn't carry that implication.

Isn't it the opposite?

Section 3.3 of RFC 5322 defines it as follows:

    The form "+0000" SHOULD be used to indicate a time zone at
    Universal Time.  Though "-0000" also indicates Universal Time, it is
    used to indicate that the time was generated on a system that may be
    in a local time zone other than Universal Time and that the date-time
    contains no information about the local time zone.



>> I suggest that for INN 2.6.1, the behaviour of the "localtime" parameter
>> be extended to the Injection-Date: header field.  And for UTC, it uses
>> "-0000" instead of "+0000".
>
>> I also suggest that for INN 2.7.0 (and for those who use CURRENT,
>> because INN 2.7.0 is not expected before a few years), the default value
>> of the "localtime" parameter changes to "true", that is to say using the
>> local time zone by default.
>
> I'm not sure why we would do that?
>
> Basically, this claims that the local time of the client (which the client
> chose not to disclose for whatever reason) is the local time of the
> server.  That seems like a bad default for a number of reasons.

Oh, yes, you're totally right.
Then, would we just switch to use "-0000" for Date: and Injection-Date: 
instead of "+0000"?  (and "localtime" still only affects the Date: header)
Maybe a new "serverlocaltime" parameter could be added for the 
Injection-Date: header field, which defaults to true?

-- 
Julien ÉLIE

« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
   (Aristophane)

Re: Time zone for "Date" header field
#87113
Author: Russ Allbery
Date: Thu, 22 Oct 2015 20:47
38 lines
2772 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

>> None of this is particularly important, so it doesn't really matter,
>> but -0000 implies that UTC is the local time zone of the server,
>> whereas +0000 doesn't carry that implication.

> Isn't it the opposite?

> Section 3.3 of RFC 5322 defines it as follows:

>    The form "+0000" SHOULD be used to indicate a time zone at
>    Universal Time.  Though "-0000" also indicates Universal Time, it is
>    used to indicate that the time was generated on a system that may be
>    in a local time zone other than Universal Time and that the date-time
>    contains no information about the local time zone.

Oh, ack, sorry!  I got turned around in the discussion and got them
backwards.

> Then, would we just switch to use "-0000" for Date: and Injection-Date:
> instead of "+0000"?  (and "localtime" still only affects the Date: header)

I would switch to use -0000 for both unless localtime is set.  If
localtime is set, we'd use +0000 if localtime was actually UTC.

> Maybe a new "serverlocaltime" parameter could be added for the
> Injection-Date: header field, which defaults to true?

I suppose we could, but I'm not sure anyone cares enough to have it be
worth the code and documentation effort to add and maintain the option.

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: Time zone for "Date" header field
#87115
Author: Michael Baeuerle
Date: Thu, 22 Oct 2015 21:07
25 lines
2321 bytes
Julien ÉLIE wrote:
> 
> Then, would we just switch to use "-0000" for Date: and Injection-Date: 
> instead of "+0000"?  (and "localtime" still only affects the Date: 
> header)
> Maybe a new "serverlocaltime" parameter could be added for the 
> Injection-Date: header field, which defaults to true?

Both fields with "-0000" (aka "don't know") by default should be OK in
any case and can't disclose any TZ information.

Manually enabling local time IMHO only make sense for Injection-Date
on a server (if the admin explicitly want to follow the recommendation
of RFC5322). Local time of the server in the "Date" field would always
be wrong (should be set by the posting agent if desired).

Opposite for a posting agent ("Injection-Date" should use "-0000" or be
absent).
-- 
Sorry, aber mit der Einstellung würden wir heute aus Sicherheitsgründen
noch auf dem Baum sitzen. Wer etwas Neues schaffen will, muß auch was
wagen - aber da heute Kinder schon zu Fuß mit Helm rumlaufen gilt das
wohl nicht mehr...                     [Eric Brücklmeier in dse]

Re: Time zone for "Date" header field
#87116
Author: Michael Baeuerle
Date: Fri, 23 Oct 2015 08:16
10 lines
1467 bytes
Michael Baeuerle wrote:
> 
> [...]
> Opposite for a posting agent ("Injection-Date" should use "-0000" or be
> absent).

This article was created with the new code I want to use for the next
flnews version.

Re: Time zone for "Date" header field
#87117
Author: Adam H. Kerman
Date: Fri, 23 Oct 2015 15:03
23 lines
2219 bytes
Michael Baeuerle <michael.baeuerle@gmx.net> wrote:
>Julien wrote:

>>Then, would we just switch to use "-0000" for Date: and Injection-Date:
>>instead of "+0000"?  (and "localtime" still only affects the Date:
>>header) Maybe a new "serverlocaltime" parameter could be added for the
>>Injection-Date: header field, which defaults to true?

>Both fields with "-0000" (aka "don't know") by default should be OK in
>any case and can't disclose any TZ information.

>Manually enabling local time IMHO only make sense for Injection-Date
>on a server (if the admin explicitly want to follow the recommendation
>of RFC5322). Local time of the server in the "Date" field would always
>be wrong (should be set by the posting agent if desired).

>Opposite for a posting agent ("Injection-Date" should use "-0000" or be
>absent).

I'm reading RFC 5532 Section 3.3 as a MUST. Offset from Greenwich
MUST be included when constructing the time part.

Re: Time zone for "Date" header field
#87118
Author: Adam H. Kerman
Date: Fri, 23 Oct 2015 15:06
15 lines
1765 bytes
Michael Baeuerle <michael.baeuerle@gmx.net> wrote:
>Michael Baeuerle wrote:

>>[...]
>>Opposite for a posting agent ("Injection-Date" should use "-0000" or be
>>absent).

>This article was created with the new code I want to use for the next
>flnews version.

You've added a comment on the header, which isn't the usual practice on
a Date header. Are there any older implementations that wouldn't be able
to parse a comment on a header with a date in it? I wouldn't do that.

Re: Time zone for "Date" header field
#87120
Author: Michael Baeuerle
Date: Fri, 23 Oct 2015 15:17
23 lines
1868 bytes
Adam H. Kerman wrote:
>Michael Baeuerle <michael.baeuerle@gmx.net> wrote:
>>Michael Baeuerle wrote:

>>>[...]
>>>Opposite for a posting agent ("Injection-Date" should use "-0000" or be
>>>absent).
 
>>This article was created with the new code I want to use for the next
>>flnews version.
 
>You've added a comment on the header, which isn't the usual practice on
>a Date header. Are there any older implementations that wouldn't be able
>to parse a comment on a header with a date in it? I wouldn't do that.

In the german test group it was noted that PhoNews has problems if the
optional day of week at the beginning is missing.

And there is a vote against the comment too.

Maybe better like in this article?

Re: Time zone for "Date" header field
#87121
Author: Michael Baeuerle
Date: Fri, 23 Oct 2015 15:25
16 lines
1623 bytes
Adam H. Kerman wrote:
>Michael Baeuerle <michael.baeuerle@gmx.net> wrote:
>> 
>>Opposite for a posting agent ("Injection-Date" should use "-0000" or be
>>absent).
 
>I'm reading RFC 5532 Section 3.3 as a MUST. Offset from Greenwich
>MUST be included when constructing the time part.

Agreed. Without the 'zone' token is clearly not compliant.

But this was a misunderstanding. I meant with "-0000" (self created) or
the whole header field absent (let the injecting agent create this
field).

Re: Time zone for "Date" header field
#87124
Author: Julien ÉLIE
Date: Fri, 23 Oct 2015 17:58
16 lines
1808 bytes
Hi Adam,

> You've added a comment on the header, which isn't the usual practice on
> a Date header. Are there any older implementations that wouldn't be able
> to parse a comment on a header with a date in it? I wouldn't do that.

Your own articles also contain a comment:
   Date: Fri, 23 Oct 2015 15:06:14 +0000 (UTC)

-- 
Julien ÉLIE

« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
   (Aristophane)

Re: Time zone for "Date" header field
#87127
Author: Adam H. Kerman
Date: Fri, 23 Oct 2015 18:58
28 lines
2384 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Adam,

>>You've added a comment on the header, which isn't the usual practice on
>>a Date header. Are there any older implementations that wouldn't be able
>>to parse a comment on a header with a date in it? I wouldn't do that.

>Your own articles also contain a comment:
>   Date: Fri, 23 Oct 2015 15:06:14 +0000 (UTC)

In the proto-article I create, no, I haven't added the Date header. That's
done at the server when injected into the network. I use albasani or
eternal-september most often, and sometimes AIOE. I believe all three
are INN servers and not one of them is in London.

I'll have to have a discussion with one of the INN programmers as to why
the time zone is +0000, indicating that UTC is also local time, and not
actual time local to the server or -0000, to indicate the use of UTC but
not the local time zone.

Hm?

I vaguely recall reading in either Son-Of or one of the subequent RFCs
that there were older servers that didn't expect there to be a comment in
any header with a Date in it, but perhaps I haven't recalled directly.

Re: Time zone for "Date" header field
#87128
Author: Adam H. Kerman
Date: Fri, 23 Oct 2015 18:59
19 lines
1845 bytes
Michael Baeuerle <michael.baeuerle@gmx.net> wrote:
>Adam H. Kerman wrote:
>>Michael Baeuerle <michael.baeuerle@gmx.net> wrote:

>>>Opposite for a posting agent ("Injection-Date" should use "-0000" or be
>>>absent).

>>I'm reading RFC 5532 Section 3.3 as a MUST. Offset from Greenwich
>>MUST be included when constructing the time part.

>Agreed. Without the 'zone' token is clearly not compliant.

>But this was a misunderstanding. I meant with "-0000" (self created) or
>the whole header field absent (let the injecting agent create this
>field).

Ok.

Re: Time zone for "Date" header field
#87130
Author: Julien ÉLIE
Date: Fri, 23 Oct 2015 20:03
37 lines
2853 bytes
Hi Russ,

>> Then, would we just switch to use "-0000" for Date: and Injection-Date:
>> instead of "+0000"?  (and "localtime" still only affects the Date: header)
>
> I would switch to use -0000 for both unless localtime is set.  If
> localtime is set, we'd use +0000 if localtime was actually UTC.

OK, that seems the right thing to do.  I also meant to use -0000 unless 
localtime is set, though I should have made it clear in my previous 
sentence.


>> Maybe a new "serverlocaltime" parameter could be added for the
>> Injection-Date: header field, which defaults to true?
>
> I suppose we could, but I'm not sure anyone cares enough to have it be
> worth the code and documentation effort to add and maintain the option.

Noted.
So we all agree to switch to use -0000 for Date: and Injection-Date: 
unless localtime is set, for INN 2.6.1.

convdate currently also generates UTC dates with +0000.  I think we 
could use -0000 for these dates too, and therefore do not add extra 
complexity to handle a specific case for convdate.
It is the only other part of INN that generates UTC dates with that 
behaviour (signcontrol already uses -0000).  As a -0000 offset also 
indicates a UTC date, it should be OK for convdate to also use that.

-- 
Julien ÉLIE

« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
   (Aristophane)

Re: Time zone for "Date" header field
#87132
Author: Julien ÉLIE
Date: Fri, 23 Oct 2015 20:10
35 lines
2692 bytes
Hi Adam,

> I'll have to have a discussion with one of the INN programmers as to why
> the time zone is +0000, indicating that UTC is also local time, and not
> actual time local to the server or -0000, to indicate the use of UTC but
> not the local time zone.

It will be fixed in INN 2.6.1.


> I vaguely recall reading in either Son-Of or one of the subequent RFCs
> that there were older servers that didn't expect there to be a comment in
> any header with a Date in it, but perhaps I haven't recalled directly.
>

Son-Of, aka RFC 1849, recommends (as a SHOULD) to add the time zone name 
as a comment.

    The date and time SHOULD be given in the poster's local time zone,
    including a specification of that time zone as a numeric offset
    (which SHOULD include the time zone name, e.g., "EST", supplied in
    parentheses like a MAIL comment).  If not, they MUST be given in
    Universal Time (abbreviated "UT"; "GMT" is a historical synonym for
    "UT").  The time zone name in parentheses, if present, is a comment;
    software MUST ignore it, except that reading agents might wish to
    display it to the reader.  Time zone names other than "UT" and "GMT"
    MUST appear only in the comment.

-- 
Julien ÉLIE

« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
   (Aristophane)

Re: Time zone for "Date" header field
#87134
Author: Adam H. Kerman
Date: Fri, 23 Oct 2015 21:47
29 lines
2553 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Adam,

>>I vaguely recall reading in either Son-Of or one of the subequent RFCs
>>that there were older servers that didn't expect there to be a comment in
>>any header with a Date in it, but perhaps I haven't recalled directly.

>Son-Of, aka RFC 1849, recommends (as a SHOULD) to add the time zone name 
>as a comment.

>    The date and time SHOULD be given in the poster's local time zone,
>    including a specification of that time zone as a numeric offset
>    (which SHOULD include the time zone name, e.g., "EST", supplied in
>    parentheses like a MAIL comment).  If not, they MUST be given in
>    Universal Time (abbreviated "UT"; "GMT" is a historical synonym for
>    "UT").  The time zone name in parentheses, if present, is a comment;
>    software MUST ignore it, except that reading agents might wish to
>    display it to the reader.  Time zone names other than "UT" and "GMT"
>    MUST appear only in the comment.

There was a comment in RFC 1036 that it would be hopeless to come up with
a standardized list of time zone abbreviations; perhaps that was what I
was thinking of.

I can't find anything that a comment on a header with a Date in it would
break anything on an older server, so I'll withdraw that.

Re: Time zone for "Date" header field
#87149
Author: Julien ÉLIE
Date: Sun, 25 Oct 2015 14:06
45 lines
3025 bytes
Hi Adam,

> I can't find anything that a comment on a header with a Date in it would
> break anything on an older server, so I'll withdraw that.

Though it would not break anything, adding the zone in a comment is now 
obsolete per RFC 5322 (and 5536).  See below.

Thanks for having commented about that zone.
I plan on removing its addition in the Injection-Date: header field 
added by INN when not already present.
Normally, this article should show that.





RFC 5536:
       NOTE: This specification does not change [RFC5322], which says
       that agents MUST NOT generate <date-time> constructs that include
       any zone names defined by <obs-zone>.

RFC 5322:
    The syntax for the obsolete date format allows a 2 digit year in the
    date field and allows for a list of alphabetic time zone specifiers
    that were used in earlier versions of this specification.

    obs-zone        =   "UT" / "GMT" /     ; Universal Time
                                           ; North American UT
                                           ; offsets
                        "EST" / "EDT" /    ; Eastern:  - 5/ - 4
                        "CST" / "CDT" /    ; Central:  - 6/ - 5
                        "MST" / "MDT" /    ; Mountain: - 7/ - 6
                        "PST" / "PDT" /    ; Pacific:  - 8/ - 7
                        %d65-73 /          ; Military zones - "A"
                        %d75-90 /          ; through "I" and "K"
                        %d97-105 /         ; through "Z", both
                        %d107-122          ; upper and lower case

-- 
Julien ÉLIE

« Non licet omnibus adire Corinthum. » (proverbe issu du grec)

Re: Time zone for "Date" header field
#87151
Author: Julien ÉLIE
Date: Sun, 25 Oct 2015 14:10
22 lines
1949 bytes
Hi Michael,

>> You've added a comment on the header, which isn't the usual practice on
>> a Date header.  Are there any older implementations that wouldn't be able
>> to parse a comment on a header with a date in it? I wouldn't do that.
>
> And there is a vote against the comment too.

Comment also removed for INN.
It is an obsolete syntax.


> Maybe better like in this article?

This article should be correct too.

-- 
Julien ÉLIE

« Non licet omnibus adire Corinthum. » (proverbe issu du grec)

Re: Time zone for "Date" header field
#87150
Author: Julien ÉLIE
Date: Sun, 25 Oct 2015 14:55
19 lines
1927 bytes
Addition:

> Though it would not break anything, adding the zone in a comment is now
> obsolete per RFC 5322 (and 5536).

Oh, sorry, adding the zone *outside* a comment is obsolete.
So, we can go on mentioning it, and for instance have:
     Injection-Date: Sun, 25 Oct 2015 14:06:54 -0000 (UTC)

Michael, in the German test group, what are the arguments against the 
comment?  Is it only for "-0000 (UTC)" or for all the time zones ("-0500 
(EST)" for instance)?

-- 
Julien ÉLIE

« Non licet omnibus adire Corinthum. » (proverbe issu du grec)

Re: Time zone for "Date" header field
#87152
Author: Michael Baeuerle
Date: Sun, 25 Oct 2015 17:33
48 lines
3105 bytes
Julien ÉLIE wrote:
> Julien ÉLIE wrote:
> > 
> > Though it would not break anything, adding the zone in a comment is now
> > obsolete per RFC 5322 (and 5536).
> 
> Oh, sorry, adding the zone *outside* a comment is obsolete.
> So, we can go on mentioning it, and for instance have:
>     Injection-Date: Sun, 25 Oct 2015 14:06:54 -0000 (UTC)

Yes. Timezone inside comment at the end should be fully compliant.

> Michael, in the German test group, what are the arguments against the 
> comment?  Is it only for "-0000 (UTC)" or for all the time zones 
> ("-0500 (EST)" for instance)?

There were no technical arguments against the comment. Only "don't like"
and "be conservative if in doubt".

My intention to implement the comment in flnews was to make it easier
to debug custom timezone configurations (using the TZ environment
variable). I had e.g. tested:
|
| export TZ=MET-1MEST 

and flnews generated the "Date" header field like this:
| 
| Date: 22 Oct 2015 17:48:26 +0200 (MEST)

By default the operating system use "CEST", the offset was +0200 for
both. Without the comment, it was not obvious whether TZ was used or
ignored.

An argument against the comment is IMHO that it will make the
introduction lines longer (if the information from "Date" is copied 1:1
by a newsreader).

Both options are already implemented in flnews now. I tend to set the
default to "no comment" because few users really use the TZ variable
(academic argument). But date as part of introduction lines is common
and the majority of people seem to dislike the comment.
-- 
> It works.
Die Beschreibung hört sich aber eher nach "It würgs" an...

                                               Günter Frenz in ger.ct

Re: Time zone for "Date" header field
#87153
Author: Michael Baeuerle
Date: Sun, 25 Oct 2015 17:55
20 lines
1968 bytes
Michael Baeuerle wrote:
> Julien ÉLIE wrote:
> > 
> > Michael, in the German test group, what are the arguments against the 
> > comment?  Is it only for "-0000 (UTC)" or for all the time zones 
> > ("-0500 (EST)" for instance)?
> 
> There were no technical arguments against the comment. Only "don't like"
> and "be conservative if in doubt".

This was still no answer to your second question:
The thread was about timezone in general. I had asked for timezone name
in comment after posting test articles using many different timezones.
-- 
> It works.
Die Beschreibung hört sich aber eher nach "It würgs" an...

                                               Günter Frenz in ger.ct

Re: Time zone for "Date" header field
#87154
Author: Adam H. Kerman
Date: Sun, 25 Oct 2015 19:57
54 lines
3779 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Adam,

>>I can't find anything that a comment on a header with a Date in it would
>>break anything on an older server, so I'll withdraw that.

>Though it would not break anything, adding the zone in a comment is now 
>obsolete per RFC 5322 (and 5536).  See below.

But those weren't comments in the obsolete syntax. The time zone indicators
were actual entries in lieu of showing the offset from Greenwich.

>Thanks for having commented about that zone.
>I plan on removing its addition in the Injection-Date: header field 
>added by INN when not already present.
>Normally, this article should show that.

>RFC 5536:
>       NOTE: This specification does not change [RFC5322], which says
>       that agents MUST NOT generate <date-time> constructs that include
>       any zone names defined by <obs-zone>.

>RFC 5322:
>    The syntax for the obsolete date format allows a 2 digit year in the
>    date field and allows for a list of alphabetic time zone specifiers
>    that were used in earlier versions of this specification.

>    obs-zone        =   "UT" / "GMT" /     ; Universal Time
>                                           ; North American UT
>                                           ; offsets
>                        "EST" / "EDT" /    ; Eastern:  - 5/ - 4
>                        "CST" / "CDT" /    ; Central:  - 6/ - 5
>                        "MST" / "MDT" /    ; Mountain: - 7/ - 6
>                        "PST" / "PDT" /    ; Pacific:  - 8/ - 7
>                        %d65-73 /          ; Military zones - "A"
>                        %d75-90 /          ; through "I" and "K"
>                        %d97-105 /         ; through "Z", both
>                        %d107-122          ; upper and lower case
>

I saw that list in RFC 5322. It's an oddball list, missing time zones used
in Canada like Atlantic Time and the several time zones used in Alaska and
Hawaii. It's a little hard to believe that was an exhaustive list and
Europeans didn't use time zone abbreviations themselves before use of
offset from Greenwich predominated.

Can I say that, yes, I understand that there is a difference between mean
time and coordinated time (imperceptible to humans), the indecisiveness
about how to abbreviate coordinated time was annoying, given how many
times it changed over the years. At some point, they even used GMT even
though they were using coordinated time, but the UT to UTC change was absurd.

Re: Time zone for "Date" header field
#87155
Author: Adam H. Kerman
Date: Sun, 25 Oct 2015 19:59
9 lines
1509 bytes
Michael Baeuerle <michael.baeuerle@gmx.net> wrote:

>There were no technical arguments against the comment. Only "don't like"
>and "be conservative if in doubt".

Apparently that was faulty memory of a technical issue on my part. Sorry
about that.

Re: Time zone for "Date" header field
#87156
Author: Russ Allbery
Date: Sun, 25 Oct 2015 20:03
26 lines
2368 bytes
Michael Baeuerle <michael.baeuerle@gmx.net> writes:
> Julien ÉLIE wrote:

>> Michael, in the German test group, what are the arguments against the
>> comment?  Is it only for "-0000 (UTC)" or for all the time zones
>> ("-0500 (EST)" for instance)?

> There were no technical arguments against the comment. Only "don't like"
> and "be conservative if in doubt".

The one argument I'd make is that the time zone abbreviations are very
artificial, often just made up, and frequently ambiguous.  I'm not sure if
that's a good enough argument against not including them, but people tend
to assume that there's some sort of one-to-one mapping between time zone
abbreviations and time zones, which is definitely not the case.  Most time
zones in the world by count don't have any meaningful unique abbreviation.
(However, most time zones by size of Internet-connected population
probably do.)

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: Time zone for "Date" header field
#87157
Author: Russ Allbery
Date: Sun, 25 Oct 2015 20:26
32 lines
2624 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:

> I saw that list in RFC 5322. It's an oddball list, missing time zones
> used in Canada like Atlantic Time and the several time zones used in
> Alaska and Hawaii. It's a little hard to believe that was an exhaustive
> list and Europeans didn't use time zone abbreviations themselves before
> use of offset from Greenwich predominated.

It's an artifact of ARPA being a US project without European nodes, I
think.  Take a look at https://tools.ietf.org/html/rfc561, which is the
first email standard (1973).  The only allowed time zones are the US zones
plus GMT.  By https://tools.ietf.org/html/rfc733 (1977), the UTC offset
was added, but no more zone names.

My educated guess, for which I have no evidence, is that people had
figured out that using time zone abbreviations was going to be a problem
(Australia historically used the same zone abbreviations as the US to
refer to *their* Eastern and Western zones, although they've subsequently
added a leading A as that's become ambiguous) and added UTC offsets as a
good, unambiguous zone indicator.  But one couldn't remove the US offsets
for backward-compatibility reasons.

(RFC 733 also marks the ill-advised introduction of the military time
zones, which were specified wrong and can't actually be used properly.)

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: Time zone for "Date" header field
#87159
Author: Julien ÉLIE
Date: Sun, 25 Oct 2015 20:28
41 lines
3128 bytes
Hi Michael,

>> Michael, in the German test group, what are the arguments against the
>> comment?  Is it only for "-0000 (UTC)" or for all the time zones
>> ("-0500 (EST)" for instance)?
>
> There were no technical arguments against the comment.  Only "don't like"
> and "be conservative if in doubt".

OK.  I would have thought there had been more objective arguments.
Then there is no reason to remove the comment INN has been adding for 
ages.  I will just switch +0000 to -0000 when localtime is not set, and 
that's all.  The "(UTC)" comment will remain.


> An argument against the comment is IMHO that it will make the
> introduction lines longer (if the information from "Date" is copied 1:1
> by a newsreader).
>
> Both options are already implemented in flnews now. I tend to set the
> default to "no comment" because few users really use the TZ variable
> (academic argument). But date as part of introduction lines is common
> and the majority of people seem to dislike the comment.

Notably when the comment can be anything, and not only a time zone.  One 
could add a lenghty comment of his own at the end of the Date: header 
field (and even between many of the tokens present in that header field, 
in its obsolete syntax, according to the places CFWS is allowed in RFC 
5322).

Therefore, I would tend to think a newsreader should remove such 
comments when making the introduction lines.  (Or otherwise be sure that 
the kept comment is really the name of the time zone related to the 
given time offset.)

-- 
Julien ÉLIE

« Non licet omnibus adire Corinthum. » (proverbe issu du grec)

Re: Time zone for "Date" header field
#87161
Author: Julien ÉLIE
Date: Wed, 28 Oct 2015 09:50
22 lines
1829 bytes
Hi Michael,

> If the posting agent don't set a "Date" header field (e.g. tin behave
> like this) the injecting agent must do it and INN insert a time with
> timezone "+0000 (UTC)"¹.
> Question to Julien: Why is INN using "+0000" here and not "-0000"?
>
> The same for "Injection-Date" header field.
>
> __________________
> ¹) Tested with Mixmin running INN 2.7.0 (20151019 prerelease)

FYI, the -0000 time zone is now used.  Changed in the 20151027 release.

-- 
Julien ÉLIE

« – Par Toutatis ! On tire encore sur nous !
   – Nous sommes au dessus de Tyr.
   – Alors tirons-nous vite ! » (Astérix)

Re: Time zone for "Date" header field
#87163
Author: Michael Baeuerle
Date: Wed, 28 Oct 2015 11:44
18 lines
1652 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > 
> > If the posting agent don't set a "Date" header field (e.g. tin behave
> > like this) the injecting agent must do it and INN insert a time with
> > timezone "+0000 (UTC)"¹.
> > Question to Julien: Why is INN using "+0000" here and not "-0000"?
> > 
> > The same for "Injection-Date" header field.
> > 
> > __________________
> > ¹) Tested with Mixmin running INN 2.7.0 (20151019 prerelease)
> 
> FYI, the -0000 time zone is now used.  Changed in the 20151027 release.

Thanks.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads