in my case, my log insert logTime like 19-5-21 11:00:00:000 CST
I parse date with format yy-M-d HH:mm:ss:SSS zzz
everything is looks good
but when I query this date field, I found that timezone is wrong
because I want CST( C hina S tandard T ime) => UTC+8
not CST( C entral S tandard T ime) => UTC-5
Is there any way to solve this problem?
It does not look like joda time is interpreting CST as china standard time, so I think the best way to solve this would be to specify the offset as -08:00 and use Z in the format.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.