This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes TimeZone CST / CDT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "TimeZone CST / CDT" Watch "TimeZone CST / CDT" New topic

TimeZone CST / CDT

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1400
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

Joined: Mar 06, 2001
Posts: 13459

Is this a question or a statement about Ranch times or something else? Please provide more information, or post questions in the appropriate forum.
I agree. Here's the link:
subject: TimeZone CST / CDT
It's not a secret anymore!