wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich <For...@gombers.de>
Subject Preset the TimeZone of DateTimeField
Date Tue, 05 May 2015 19:32:55 GMT
I want the enduser to set the datetimefield as UTC-time. I want to make sure
ît is handled as UTC at program side - not to rely on the server settings. 
When I display the entered DateTimeField with the
"getModelObject().toString()"  it displays those values indicating that they
represent the server timezone. That means UTC is different. 
The only chance I see to handle the number as UTC themselves is that I need
to retrieve the Date().getTimeZoneOffset() and calculate the Date myself. 
Is the DateTimeField.changeTimeZone()-method of an help here? I don't see
what it is meant for right now.

My code looks like this:



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Preset-the-TimeZone-of-DateTimeField-tp4670631.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message