diff --git a/superset/models.py b/superset/models.py index bf2e68917ef8b..9364db5a1bce2 100644 --- a/superset/models.py +++ b/superset/models.py @@ -2151,7 +2151,7 @@ def increment_timestamp(ts): tzinfo=config.get("DRUID_TZ")) return dt + timedelta(milliseconds=time_offset) if DTTM_ALIAS in df.columns and time_offset: - df.timestamp = df.timestamp.apply(increment_timestamp) + df[DTTM_ALIAS] = df[DTTM_ALIAS].apply(increment_timestamp) return QueryResult( df=df,