Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can't change the GWT timezone, hence all java.util.Date's has the browser timezone. You will need to handle the current timezone setting manually.</p> <p>I see 3 options:</p> <ol> <li><p>You manage the timezone conversion yourself.</p></li> <li><p>You override the serializer/deserializer of <a href="http://java.sun.com/javase/6/docs/api/java/util/Date.html" rel="nofollow noreferrer">java.util.Date</a> like <a href="http://groups.google.com/group/google-web-toolkit/browse_thread/thread/fd7b80de11507908/2874ac102f17db26" rel="nofollow noreferrer">in this post</a>. And maybe using a custom <a href="http://java.sun.com/javase/6/docs/api/java/util/Date.html" rel="nofollow noreferrer">java.util.Date</a> implemtation, that overrides the <a href="http://java.sun.com/j2se/6/docs/api/java/util/Date.html#getTimezoneOffset()" rel="nofollow noreferrer">getTimezoneOffset()</a>. This approach requires recompilation of the GWT API!.</p></li> <li><p>You implement your own Date, either by extending <a href="http://java.sun.com/javase/6/docs/api/java/util/Date.html" rel="nofollow noreferrer">java.util.Date</a> (like in option 2) or wrapping it with some timezone object. In this option <a href="http://code.google.com/p/wogwt/wiki/CustomFieldSerializer" rel="nofollow noreferrer">CustomFieldSerializer's</a> may still be usefull, but there is no need for recompiling the GWT API.</p></li> </ol> <p>I would prefer option 3. At least until GWT RPC maybe someday will support for overriding the CustomFieldSerializer's</p> <hr> <p><a href="http://code.google.com/p/gwt-examples/wiki/gwtDateTime" rel="nofollow noreferrer">Usefull date/time formatting hints.</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload