Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why am I getting back CDT timezone instead of CST

 
Scott Hiett
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic