You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ulrich <Fo...@gombers.de> on 2015/05/05 21:32:55 UTC
Preset the TimeZone of DateTimeField
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