date - How do I get GWT DateTimeFormat to display using the server TimeZone, rather than the client's? -


I am trying to display a client-side (java.util.), And this is the time zone As a result,

How do I get the format (datetime format) to display the date using the server's timezone instead of the user?

Thanks

"Easiest" solution (which requires no communication from the server Is not) is forced only to use a specific timezone (in your server), like this:

  string pseudo-surfertime = datetime format.get fulltime format (). Format (New Date), Timezone.CreateTimeJones (Time Zone Conventions. Europwors ());  

You can hardcode the timezone string / object anywhere as public static last so that you can easily change, if you change / change the server (And the GWT compiler will be inline, so there is no performance penalty).


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -