incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx" <dirk.frederi...@gmail.com>
Subject Re: [jira] Created: (JSPWIKI-196) Date and time format accoding to ISO 8601
Date Fri, 22 Feb 2008 05:04:30 GMT
Better would be to use the default time-format as selected from
jspwiki.properties or the user preferences  (ref. the  Preferences
class)

This is already mostly the case in the JSP's, but not yet across the
complete code-base.


dirk

On 2/21/08, Murray Altheim <murray06@altheim.com> wrote:
> +1
>
> I don't know what impact this will have on others but it's certainly
> fine by me -- it's the same decision I made on my own projects a while
> back -- this is compatible for my systems and a sensible/defensible
> default.
>
> Murray
>
> Goran Karlic (JIRA) wrote:
> > Date and time format accoding to ISO 8601
> > -----------------------------------------
> >
> >                  Key: JSPWIKI-196
> >                  URL: https://issues.apache.org/jira/browse/JSPWIKI-196
> >              Project: JSPWiki
> >           Issue Type: Improvement
> >           Components: Localization
> >     Affects Versions: 2.6.1
> >          Environment: Any
> >             Reporter: Goran Karlic
> >             Priority: Trivial
> >
> >
> > 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.
> >
> > 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 would be 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.
> >
>
>
> --
>
> ...........................................................................
> Murray Altheim <murray07 at altheim.com>                           ===  = =
> http://www.altheim.com/murray/                                     = =  ===
> SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =
>
>       Boundless wind and moon - the eye within eyes,
>       Inexhaustible heaven and earth - the light beyond light,
>       The willow dark, the flower bright - ten thousand houses,
>       Knock at any door - there's one who will respond.
>                                       -- The Blue Cliff Record
>

Mime
View raw message