[Zope-CMF] DateTime support for Norwegian dateformat? (offtopic)

jkpikifi jkp@iki.fi
Fri, 21 Dec 2001 11:40:51 -0000


Sorry this is offtopic, but here goes anyway:

My proposed fix for this was that when '.' is the delimiter, the
default order would be dd.mm.yyyy but when '/' is the delimiter, the
order would be mm/dd/yyyy.  Someone more familiar with global date
formats perhaps can tell whether this is a sensible approach - or is
there a habit of using mm.dd somewhere on the globe?  An older format
(not that much used anymore) for dates in Finland is dd/m but many
places with more people I think use m/dd, so defaulting to m/dd seems
like a reasonable thing.

I think I submitted the code to the bug collector for this change.

--- In zopeCMF@y..., Joachim Schmitz <js@a...> wrote:
> but beware of a bug-feature.
> 
> 
> DateTime('13.1.2001') --> results correctly to 13-Jan-2001
> but
> DateTime('12.1.2001') --> results to 1-Dec-2001
> 
> and so do all others where the daydigits result in a valid month !!!!!
> 
> 
> --On Donnerstag, Dezember 20, 2001 14:13:59 -0500 Andreas Jung 
> <andreas@z...> wrote:
> 
> > Zopes DateTime objects should be able to parse formats
> > like 'dd.mm.yy' and 'dd.mm.YYYY' (tested and working
> > with Zope 2.5 (and earlier version)).