lxxstc opened a new issue #3950:
URL: https://github.com/apache/incubator-doris/issues/3950


   The time zone of my server is UTC. so, It will throw an exception like 
"Unknown or incorrect time zone: 'UTC'", when I perform some DDL. Please 
support the timezone as more as possible, at least including UTC.
   Below is git diff between my workspace and branch master
   
   index 21612bfc..6dcfe0ce 100644
   --- a/fe/src/main/java/org/apache/doris/common/util/TimeUtils.java
   +++ b/fe/src/main/java/org/apache/doris/common/util/TimeUtils.java
   @@ -256,7 +256,7 @@ public class TimeUtils {
                Matcher matcher = TIMEZONE_OFFSET_FORMAT_REG.matcher(value);
                // it supports offset and region timezone type, "CST" use here 
is compatibility purposes.
                boolean match = matcher.matches();
   -            if (!value.contains("/") && !value.equals("CST") && !match) {
   +            if (!value.contains("/") && !value.equals("UTC") && 
!value.equals("CST") && !match) {
                    
ErrorReport.reportDdlException(ErrorCode.ERR_UNKNOWN_TIME_ZONE, value);
                }
                if (match) {
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to