Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 21C1F200B8D for ; Fri, 9 Sep 2016 00:46:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 20481160AD0; Thu, 8 Sep 2016 22:46:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 672E2160AAD for ; Fri, 9 Sep 2016 00:46:03 +0200 (CEST) Received: (qmail 29097 invoked by uid 500); 8 Sep 2016 22:46:02 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 29088 invoked by uid 99); 8 Sep 2016 22:46:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2016 22:46:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3FF8CC177B for ; Thu, 8 Sep 2016 22:46:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.124 X-Spam-Level: X-Spam-Status: No, score=-0.124 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.124] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id KnNMpinC9eVl for ; Thu, 8 Sep 2016 22:46:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 1CA925FBC4 for ; Thu, 8 Sep 2016 22:46:01 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BF008E00B8 for ; Thu, 8 Sep 2016 22:45:59 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 838D13A05B4 for ; Thu, 8 Sep 2016 22:45:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1759922 - /comdev/reporter.apache.org/trunk/site/addrelease.html Date: Thu, 08 Sep 2016 22:45:59 -0000 To: commits@community.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160908224559.838D13A05B4@svn01-us-west.apache.org> archived-at: Thu, 08 Sep 2016 22:46:04 -0000 Author: sebb Date: Thu Sep 8 22:45:58 2016 New Revision: 1759922 URL: http://svn.apache.org/viewvc?rev=1759922&view=rev Log: COMDEV-203 Timezone issues with release dates Fix Javascript dates to always use UTC. Modified: comdev/reporter.apache.org/trunk/site/addrelease.html Modified: comdev/reporter.apache.org/trunk/site/addrelease.html URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/addrelease.html?rev=1759922&r1=1759921&r2=1759922&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/addrelease.html (original) +++ comdev/reporter.apache.org/trunk/site/addrelease.html Thu Sep 8 22:45:58 2016 @@ -59,8 +59,8 @@ function validate(form) { var x = document.getElementById('xdate').value.split("-"); - var y = new Date(x[0],parseInt(x[1])-1,parseInt(x[2])); - var nn = parseInt(y.getTime()/1000); + // ensure UTC date is used! + var nn = Date.UTC(x[0],parseInt(x[1])-1,parseInt(x[2]))/1000; document.getElementById('date').value = nn; if (isNaN(nn)) { alert("Please fill out the release date using YYYY-MMM-DD!")