From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.devel Subject: make standard If-Modified-Since headers Date: Wed, 27 Feb 2008 07:44:37 +0800 Message-ID: <873arfl1ui.fsf_-_@jidanni.org> References: <86pruy3q6p.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204069495 19705 80.91.229.12 (26 Feb 2008 23:44:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 23:44:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 00:45:20 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JU9U7-0003yi-9V for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 00:45:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU9Tb-0001Uf-M7 for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2008 18:44:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JU9TY-0001UQ-60 for emacs-devel@gnu.org; Tue, 26 Feb 2008 18:44:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JU9TV-0001UE-QL for emacs-devel@gnu.org; Tue, 26 Feb 2008 18:44:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU9TV-0001UB-KZ for emacs-devel@gnu.org; Tue, 26 Feb 2008 18:44:41 -0500 Original-Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5] helo=blingymail-a1.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JU9TU-0005x4-RQ for emacs-devel@gnu.org; Tue, 26 Feb 2008 18:44:41 -0500 Original-Received: from jidanni1 (122-127-33-31.dynamic.hinet.net [122.127.33.31]) by blingymail-a1.g.dreamhost.com (Postfix) with ESMTP id 96F155CF9B for ; Tue, 26 Feb 2008 15:44:39 -0800 (PST) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90546 Archived-At: Can you people please make If-Modified-Since headers like say, firefox? Here is an If-Modified-Since header made by firefox: If-Modified-Since: Wed, 13 Feb 2008 00:45:19 GMT >>>>> "TZ" == Ted Zlatanov writes: TZ> On Sat, 16 Feb 2008 04:15:36 +0800 jidanni@jidanni.org wrote: j> Well OK but I bet j> If-modified-since: Wednesday, 13-Feb-08 00:45:19 GMT j> means 1908. TZ> You may be right, RFC 850 doesn't specify the conversion. Sorry I TZ> didn't consider that in my original response (typical engineer response TZ> to man in balloon asking "where am I" -- "in the air" :) TZ> I don't know if the date should be 1900+x or (1900+x when x > 50, 2000+x TZ> otherwise). I'll bet that's one of the reasons RFC 850 is obsolete, so TZ> let's instead try to fix the root problem. TZ> So, what's sending that header? In Emacs 22, it seems to be TZ> lisp/url/url-util.el:url-get-normalized-date and it definitely has the TZ> behavior you noted. Since the bug may affect other things (there's a TZ> comment about Plexus servers in the code) I won't attempt to fix it TZ> myself, though it's not hard to do. Please, emacs-devel-opers, let me TZ> know if I should submit a fix. TZ> I think format-time-string is the right function to do this, but there's TZ> probably subtleties that I don't know. At least for time zones, TZ> format-time-string will handle them correctly.