• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

application when deployed in tomcat is showing different time formats

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using gwt in development, I need to display time and is using


but when i deployed my application, i am getting different formats, on different browsers, i.e.,

Wednesday, June 29, 2005 15:20:00
Wed, 29 Jun 2005 15:20:00 GMT+0100

I want it to appear in one format over all browsers, that is, Jun 29, 2005. how do i do that? I tried using to GMTString but it's always delayed by one day why is that so?

Thanks.

Regards,

chris
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I normally use

SimpleDateFormat

for that, but maybe someone else has a smarter idea.
 
reply
    Bookmark Topic Watch Topic
  • New Topic