You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2025/10/28 23:12:35 UTC

(superset) branch master updated: fix: add utc=True to pd.to_datetime for timezone-aware datetimes (#35587)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c57c9c0b2 fix: add utc=True to pd.to_datetime for timezone-aware datetimes (#35587)
5c57c9c0b2 is described below

commit 5c57c9c0b21ce9742f87fdf69c5da2997be0890e
Author: Amin Ghadersohi <am...@gmail.com>
AuthorDate: Tue Oct 28 19:12:28 2025 -0400

    fix: add utc=True to pd.to_datetime for timezone-aware datetimes (#35587)
---
 superset/result_set.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/result_set.py b/superset/result_set.py
index 64d6f19afe..ff65453aff 100644
--- a/superset/result_set.py
+++ b/superset/result_set.py
@@ -170,7 +170,7 @@ class SupersetResultSet:
                             if sample.tzinfo:
                                 tz = sample.tzinfo
                                 series = pd.Series(array[column])
-                                series = pd.to_datetime(series)
+                                series = pd.to_datetime(series, utc=True)
                                 pa_data[i] = pa.Array.from_pandas(
                                     series,
                                     type=pa.timestamp("ns", tz=tz),