• Post Reply Bookmark Topic Watch Topic
  • New Topic

TimeZone Problem

 
RameshBabu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following line gives me the result as 'IST' based on my timezone settings in my PC.

System.out.println( TimeZone.getDefault().getDisplayName(true,TimeZone.SHORT,Locale.getDefault()) );

Is any possibility to show the result as 'GMT+05:30', which is equalent for IST.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!