You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-In the absence of timezone information in the given string, it assumes the timestampas belonging to the timezone configured inDatabend. However, when the timestamp comes along with a pattern, it is assumed to be in the UTC timezone.
54
+
-In the absence of timezone information in the given string, it assumes the timestampas belonging to the timezone configured in the current session.
55
55
56
56
```sql
57
57
-- Set timezone to 'America/Toronto' (UTC-5:00, Eastern Standard Time)
58
58
SET timezone = 'America/Toronto';
59
59
60
-
-- The 1st TO_TIMESTAMP interprets the timestamp without a pattern,
61
-
-- assuming it belongs to the timezone configured in Databend.
62
-
-- The 2nd TO_TIMESTAMP interprets the timestamp with a pattern,
63
-
-- assuming it belongs to the UTC timezone.
64
-
-- As a result, the timestamps are converted differently, leading to the difference in output.
0 commit comments