You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Mario Rometsch <ro...@uni-ulm.de> on 2006/05/09 08:40:30 UTC

Problem Formatting time

Hi,
I need to modify the format of the timestamp saved in
<dcterms:created> (it looks like Tue May 09 08:16:02 CEST 2006).
Where is this string generated?

Thanks

Mario Rometsch

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Problem Formatting time

Posted by so...@apache.org.
On 5/9/06, Mario Rometsch <ro...@uni-ulm.de> wrote:
> I need to modify the format of the timestamp saved in
> <dcterms:created> (it looks like Tue May 09 08:16:02 CEST 2006).
> Where is this string generated?

Do you really need to change how the date is stored?  Or just how it
is displayed?

Changing how it is stored will probably break Lenya.  Any function
retrieving the date will expect it in the current format.

For formatting dates for display, see the i18n Transformer:
http://cocoon.apache.org/2.1/userdocs/i18nTransformer.html

You can reformat dates to your own format, or have the dates appear
based on the visitor's language choice.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org