Andreas Hartmann wrote:
> Hi Vik,
> 
> Vik Tara schrieb:
>> Are you running lenya on tomcat?
>>
>> On linux you would add something like this to JAVA_OPTS in startup.sh:
>>
>> "-Duser.timezone=Europe/London"
> 
> this would mean that all clients would get the dates formatted for this
> time zone, wouldn't they? But maybe this would be sufficient for this
> particular scenario.

Yeah - it would - I think that's what was being asked for - but maybe I
read the post too quickly :)

> 
> -- Andreas
> 
> 
>>
>> HTH
>>
>> Vik
>>
>> Gintare Ragaisiene wrote:
>>> Hello,
>>>
>>> thank you for answer, but it seem I haven't told in my question, that I
>>> mean about timestamps timezone, not about formating. Formating is ok for
>>> me, but it is wrong with timestamp value itself. So, I don't know how to
>>> set timezone to Lithuanian.
>>>
>>> Gintare
>>>
>>>
>>> On Tue, Jul 14, 2009 at 11:19 AM, Andreas Hartmann <[email protected]
>>> <mailto:[email protected]>> wrote:
>>>
>>>     Gintare Ragaisiene schrieb:
>>>
>>>         Hello,
>>>
>>>          Server that runs Lenya is in USA, my client that uses Lenya is
>>>         in Lithuania. Client need to see Lithuanian publication
>>>         timestamps, but Lenya shows them according to server USA
>>>         timestamps. How can I chan change it to display Lithuanian
>>>         timestamps ?
>>>
>>>
>>>     The format of the timestamps is determined by the locale passed to
>>>     the i18n transformer. The default publication uses the document
>>>     language:
>>>
>>>     <map:transform type="i18n">
>>>      <map:parameter name="locale" value="{page-envelope:language}"/>
>>>     </map:transform>
>>>
>>>     If you want to use the browser settings instead, you can switch to
>>>     the request locale:
>>>
>>>     <map:transform type="i18n">
>>>      <map:parameter name="locale" value="{request:locale}"/>
>>>     </map:transform>
>>>
>>>     Maybe you might want to use a dedicated i18n transformation for the
>>>     publication timestamps. You'll find more info in the Cocoon
>>>     documentation on the i18n transformer.
>>>
>>>     -- Andreas
>>>
>>>
>>>
>>>     --     Andreas Hartmann, CTO
>>>     BeCompany GmbH
>>>     http://www.becompany.ch
>>>     Tel.: +41 (0) 43 818 57 01
>>>
>>>
>>>    
>>> ---------------------------------------------------------------------
>>>     To unsubscribe, e-mail: [email protected]
>>>     <mailto:[email protected]>
>>>     For additional commands, e-mail: [email protected]
>>>     <mailto:[email protected]>
>>>
>>>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to