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 2020/05/20 00:13:50 UTC

[GitHub] [incubator-superset] jayhjha commented on issue #9681: How to make Time Grain in Chart calculate day based on local time zone

jayhjha commented on issue #9681:
URL: https://github.com/apache/incubator-superset/issues/9681#issuecomment-631158128


   You can update the base query for the data source. Go to sources > Tables > Edit record and under SQL, add:
   ```
       SELECT *, create_time at time zone 'Asia/Shanghai' at time zone 'utc' as create_time_zone
       FROM dbadmin.de_billing;
   ```
   and the column `create_time_zone` will be available for all charts using that source. 
   So you use that instead of `create_time` in your charts.


----------------------------------------------------------------
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



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