Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TimeZone CST / CDT

 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TimeZone.getDefault().getDisplayName() gives current time zone of the system. We are in PST. We have changed our system time to CST for our testing . I am getting CST for TimeZone.getDefault().getDisplayName() and again we have changed our system time to CDT for some days. But still i am getting CST for TimeZone.getDefault().getDisplayName(). But system 'date' gives CDT.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a question or a statement about Ranch times or something else? Please provide more information, or post questions in the appropriate forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic