Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 64686 invoked from network); 10 Apr 2008 11:06:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 11:06:55 -0000 Received: (qmail 73916 invoked by uid 500); 10 Apr 2008 11:06:55 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 73897 invoked by uid 500); 10 Apr 2008 11:06:55 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 73879 invoked by uid 99); 10 Apr 2008 11:06:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 04:06:55 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 11:06:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2ADBD234C0C9 for ; Thu, 10 Apr 2008 04:04:06 -0700 (PDT) Message-ID: <1874671435.1207825446174.JavaMail.jira@brutus> Date: Thu, 10 Apr 2008 04:04:06 -0700 (PDT) From: "Goran Karlic (JIRA)" To: jspwiki-dev@incubator.apache.org Subject: [jira] Created: (JSPWIKI-244) Rendering Date and Time from Plugins MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Rendering Date and Time from Plugins ------------------------------------ Key: JSPWIKI-244 URL: https://issues.apache.org/jira/browse/JSPWIKI-244 Project: JSPWiki Issue Type: Improvement Components: Localization Affects Versions: 2.6.1 Environment: Any Reporter: Goran Karlic Priority: Trivial +This issue was changed to better reflect the initiated discussion+ Focus is on: * How DateTimes are *stored* internally, for example as page content or metadata (comments etc.) * How they are *rendered* to end-users in their browsers {quote} The original issue name was: _Date and time formats according to ISO 8601_. We have multiple occurences of hard-coded or context-unaware DateTime to String conversions (page properties, JSPs, templates). My proposal is to rely on an international standard instead of using an invented default. The current international standard is ISO 8601 (s. Wikipedia). My further proposal is to show time with the precision to the second, as the SI unit system defines the second as the basic unit of time. Furthermore "GMT" is replaced by "UTC" and they might differ up to a second (s. Wikipedia). I think this will make unlocalized strings more transparent to the users and easier to decode correctly (consider 02/03/08 - is it in the future or in the past - or might it even be the current time?!). Following this proposal java format strings allowed for above cases would be: (1) Simple date: "yyyy-MM-dd" ("The daily mail for 2008-02-20 was sent") (2) Date and time (2.1) Explicit time context: "yyyy-MM-dd hh:mm:ssZ" ("User gkarlic made this at 2008-02-20 22:38:10+0100") (2.2) Implicit time context: "yyyy-MM-dd hh:mm:ss" ("This server lives on CET, here it is 2008-02-20 22:38:10") Where (2.1) would be used for strings that might emerge from different time-zones. If others agree with this proposal, I would gladly make the required changes. {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.