You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by va...@apache.org on 2025/06/04 20:54:26 UTC

(superset) branch fix/remove-timezone-dataset-changed-on created (now 47e39e0173)

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

vavila pushed a change to branch fix/remove-timezone-dataset-changed-on
in repository https://gitbox.apache.org/repos/asf/superset.git


      at 47e39e0173 fix: Do not convert dataset changed_on to UTC

This branch includes the following new commits:

     new 47e39e0173 fix: Do not convert dataset changed_on to UTC

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: fix: Do not convert dataset changed_on to UTC

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vavila pushed a commit to branch fix/remove-timezone-dataset-changed-on
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 47e39e0173e2f8261113a119665e0fe0c2cb3c40
Author: Vitor Avila <vi...@preset.io>
AuthorDate: Wed Jun 4 17:54:15 2025 -0300

    fix: Do not convert dataset changed_on to UTC
---
 superset/daos/dataset.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/daos/dataset.py b/superset/daos/dataset.py
index e49585dced..0a31ab1a21 100644
--- a/superset/daos/dataset.py
+++ b/superset/daos/dataset.py
@@ -17,7 +17,7 @@
 from __future__ import annotations
 
 import logging
-from datetime import datetime, timezone
+from datetime import datetime
 from typing import Any
 
 import dateutil.parser
@@ -198,7 +198,7 @@ class DatasetDAO(BaseDAO[SqlaTable]):
                 force_update = True
 
             if force_update:
-                attributes["changed_on"] = datetime.now(tz=timezone.utc)
+                attributes["changed_on"] = datetime.now()
 
         return super().update(item, attributes)