Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Why am I getting back CDT timezone instead of CST Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why am I getting back CDT timezone instead of CST" Watch "Why am I getting back CDT timezone instead of CST" New topic
Author

Why am I getting back CDT timezone instead of CST

Scott Hiett
Greenhorn

Joined: Jun 05, 2001
Posts: 5
The output from the following code:
passing 9/28/2002 5:00 PM CST
getTheDate = 09/23/2002 10:00 AM CDT
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
I expect it has something to do with the fact that it is trying to convert "China Standard Time" to "Central Standard Time" which is still on "Central Daylight Time" on 9-23-02.
Could be why the use of CST et al. is deprecated.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Consider Paul's rocket mass heater.
 
subject: Why am I getting back CDT timezone instead of CST
 
Similar Threads
dates
Adjusting GregorianCalendar to reflect a specific TimeZone
date
is date valid
how to validate a string like "20060503" is DATE