You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/03/21 05:04:36 UTC

[GitHub] [incubator-superset] mistercrunch commented on a change in pull request #7057: feat: use strict ISO8601 datetime format in postgres engine spec

mistercrunch commented on a change in pull request #7057: feat: use strict ISO8601 datetime format in postgres engine spec
URL: https://github.com/apache/incubator-superset/pull/7057#discussion_r267626274
 
 

 ##########
 File path: superset/db_engine_specs.py
 ##########
 @@ -535,6 +535,10 @@ def get_timestamp_column(expression, column_name):
             return f'"{column_name}"'
         return column_name
 
+    @classmethod
+    def convert_dttm(cls, target_type, dttm):
+        return "'{}'".format(dttm.strftime('%Y-%m-%dT%H:%M:%S'))
 
 Review comment:
   wait isn't that identical to the parent's class method?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org