[opencms-dev] Date Validation and storage

Mike Insch mike.insch at gmail.com
Tue May 23 12:09:44 CEST 2006


Thanks.  Could you give me a quick pointer as to where I can configure
the new type?

TIA,
-- 
Regards, Mike Insch, DipHE

> Message: 5
> Date: Mon, 22 May 2006 06:31:50 -0700
> From: "Siegfried Puchbauer" <siegfried.puchbauer at gmail.com>
> Subject: Re: [opencms-dev] Date Validation and storage
>
> The date is stored as long - java standard (milliseconds since 1970-01-01).
> It would be maybe a good idea to define your own xmlcontent datatype
> (similar to OpenCmsDate) that stores it as String ...
>
> hth
>
> On 5/20/06, Mike Insch <mike.insch at gmail.com> wrote:
> >
> > Hi All,
> >
> > Now that I have my XML content definitions working (thanks for the
> > earlier help), I have run into another problem.
> >
> > For some reason, it seems that I can't store any dates earlier than
> > January 1 1972 using the OpenCmsDateTime property type.  Since my
> > website deals with Heritage Railways and Steam Locomotive production
> > and retirement dates, I potentially need to store dates as far back as
> > the mid 1800's!
> >
> > Is there somewhere I need to change settings to allow the storage of
> > earlier dates, or do I have to provide an alternative means of storing
> > dates earlier than 1972?
> > --
> > Regards, Mike Insch, DipHE



More information about the opencms-dev mailing list