TimeZone.getTimeZone(“CST”) returns GMT

前端 未结 6 991
梦毁少年i
梦毁少年i 2020-12-17 20:25

I\'m converting time from CST to local time but getTimeZone doesn\'t seem to work properly.

    String cstTime = \"2013-06-21 14:00:00\";

    S         


        
6条回答
  •  一整个雨季
    2020-12-17 21:04

    One thing I found is that Java's TimeZone doesn't recognize "+09:00", but it does recognize "GMT+09:00" and "GMT+0900".

提交回复
热议问题