Hi Will,

On Dienstag, 1. März 2011, Will Scheidegger wrote:
> If you mean the date selection calendar in the dialog: yes, dates are
> converted automatically (and correctly). But as I said: If you're calling
> 
> NodeDataUtil.getDate()
> 
> you will get a Calendar object in UTC.

... and this is right! Especially when you transfer the date instance with 
serialization to other servers (possibly with a different system TZ) UTC is an 
absolute requirement.

Remember that you have to set the TZ for SimpleDateFormat also, there is no 
explicit Magnolia default in this case, it's the Java runtime. Additionally I 
would avoid the usage of the 3-letter TZ codes (except for presentation), 
because they are not unique.

- Jörg


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to