michael-s-molina commented on code in PR #34564:
URL: https://github.com/apache/superset/pull/34564#discussion_r2283164641


##########
superset-frontend/plugins/legacy-plugin-chart-calendar/src/utils.ts:
##########
@@ -25,6 +25,7 @@ export const getFormattedUTCTime = (
   timeFormat?: string,
 ) => {
   const date = new Date(ts);
-  const offset = date.getTimezoneOffset() * 60 * 1000;
-  return getTimeFormatter(timeFormat)(date.getTime() - offset);
+  // No need to adjust for timezone offset - the timestamp is already in UTC

Review Comment:
   The offset was introduced by https://github.com/apache/superset/pull/17664. 
@kgabryje Could you review this PR?



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

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to