From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: make standard If-Modified-Since headers Date: Wed, 27 Feb 2008 16:45:26 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86tzjuow6x.fsf@lifelogs.com> References: <86pruy3q6p.fsf@lifelogs.com> <873arfl1ui.fsf_-_@jidanni.org> <867igqtp1g.fsf@lifelogs.com> <87ejayjuf8.fsf@ambire.localdomain> <863aretkoj.fsf@lifelogs.com> <86y796s33o.fsf@lifelogs.com> <47C5E307.6070200@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204152256 4512 80.91.229.12 (27 Feb 2008 22:44:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 22:44:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 23:44:42 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 1JUV0x-0000EE-Nq for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 23:44:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUV0R-0003lJ-Jz for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 17:44:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUV01-0003ab-8X for emacs-devel@gnu.org; Wed, 27 Feb 2008 17:43:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUUzz-0003Zi-ML for emacs-devel@gnu.org; Wed, 27 Feb 2008 17:43:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUUzz-0003Zd-Bw for emacs-devel@gnu.org; Wed, 27 Feb 2008 17:43:39 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUUzy-00057s-Pt for emacs-devel@gnu.org; Wed, 27 Feb 2008 17:43:39 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JUUzq-0005td-Gt for emacs-devel@gnu.org; Wed, 27 Feb 2008 22:43:30 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 22:43:30 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 22:43:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:/cJKDu1m/hWLXuZ+7pI/pNlliaI= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:90661 Archived-At: On Wed, 27 Feb 2008 22:24:07 +0000 Jason Rumney wrote: JR> IIRC, only a small subset of timezone names are allowed in HTTP JR> headers, so %z would be better than %Z, or alternatively hardcode GMT: JR> ... JR> (format-time-string "%a, %d %b %Y %T GMT" JR> (or specified-time (current-time)) t) ... JR> In fact, RFC2616 (3.3.1) states: "All HTTP date/time stamps MUST be JR> represented in Greenwich Mean Time (GMT), without exception. For the JR> purposes of HTTP, GMT is exactly equal to UTC (Coordinated Universal JR> Time)." JR> So hardcoding GMT here is correct. Cool, thanks for clarifying. So the function will now read: (defun url-get-normalized-date (&optional specified-time) "Return a 'real' date string that most HTTP servers can understand." (let ((system-time-locale "C")) (format-time-string "%a, %d %b %Y %T GMT" (or specified-time (current-time)) t))) Is that OK with everyone? It needs to go into both the test release as a bug fix and into the CVS HEAD. I should still have CVS commit permissions from savannah so I can commit this, if it's OK with the maintainers. Ted