Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0
-
None
-
None
-
None
Description
the code :
org.apache.phoenix.util.DateUtil
public static final TimeZone DATE_TIME_ZONE = TimeZone.getTimeZone("GMT");
public static Format getDateParser(String pattern) {
SimpleDateFormat format = new SimpleDateFormat(pattern) {
@Override
public java.util.Date parseObject(String source) throws ParseException
};
format.setTimeZone(DateUtil.DATE_TIME_ZONE);
return format;
}
==================
Every phoenix user will be formated with GMT time zone.
But other's, just like me .the time zone is GMT+8
I think it will be default not be set with
format.setTimeZone(DateUtil.DATE_TIME_ZONE);
when anyone want to set it. add a config in hbase-site.xml.
Attachments
Issue Links
- duplicates
-
PHOENIX-1485 Date columns should be displayed without timezone offset
- Closed