Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0B8F80B2 for ; Fri, 26 Aug 2011 16:41:22 +0000 (UTC) Received: (qmail 15383 invoked by uid 500); 26 Aug 2011 16:41:21 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 15325 invoked by uid 500); 26 Aug 2011 16:41:21 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 15316 invoked by uid 99); 26 Aug 2011 16:41:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 16:41:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 16:41:16 +0000 Received: by vws17 with SMTP id 17so4219218vws.18 for ; Fri, 26 Aug 2011 09:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OzkM7w+6Wl6u8lqkKJgid0UKLx7umxfBpmAXuIgxhBo=; b=lghjbBh01F+UUEuMweW0y52oMz07yClvnuLJChYdxTqzxdR6ffejk7q+aTXXdYJ+/9 G+W7QIH5FGpg7/aQww79FJPxvRSB+0bnuqBRHHOUoApBCVbjlbTRk7Mnts2OfYLh+vP5 4h+KwJP/baSX7t1bVrjf/lQXSD9kC10MyElwQ= MIME-Version: 1.0 Received: by 10.52.107.104 with SMTP id hb8mr1379439vdb.436.1314376855251; Fri, 26 Aug 2011 09:40:55 -0700 (PDT) Received: by 10.52.185.106 with HTTP; Fri, 26 Aug 2011 09:40:55 -0700 (PDT) In-Reply-To: References: <4E57C567.1050108@christopherschultz.net> Date: Fri, 26 Aug 2011 20:40:55 +0400 Message-ID: Subject: Re: Possible bug in Tomcat Date header handling From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 2011/8/26 Mick Sear : > I also think that looking at this code, if clocks go back at, say, 2am in > a given time zone, Tomcat will report 2am in an HTTP header continually > for 1 hour. > > Am I wrong? The header is in GMT. It does not matter what timezone your OS uses. [[[ static { format.setTimeZone(gmtZone); formats[0].setTimeZone(gmtZone); formats[1].setTimeZone(gmtZone); formats[2].setTimeZone(gmtZone); } ]]] > wget.exe --save-headers http://localhost:8080/ HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=ISO-8859-1 Date: Fri, 26 Aug 2011 16:40:02 GMT Connection: close Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org