diff --git a/airflow/www/static/js/ti_log.js b/airflow/www/static/js/ti_log.js
index 8c11b75a8e53a..08e5ed29b2bf9 100644
--- a/airflow/www/static/js/ti_log.js
+++ b/airflow/www/static/js/ti_log.js
@@ -17,7 +17,7 @@
* under the License.
*/
-/* global document, window, $, */
+/* global document, window, $, moment, Airflow */
import { escapeHtml } from './main';
import getMetaValue from './meta_value';
import { formatDateTime } from './datetime_utils';
@@ -115,9 +115,10 @@ function autoTailingLog(tryNumber, metadata = null, autoTailing = false) {
// The message may contain HTML, so either have to escape it or write it as text.
const escapedMessage = escapeHtml(item[1]);
+ const tzOffset = moment().tz(Airflow.serverTimezone).format('Z');
const linkifiedMessage = escapedMessage
.replace(urlRegex, (url) => `${url}`)
- .replaceAll(dateRegex, (date) => ``);
+ .replaceAll(dateRegex, (date) => ``);
logBlock.innerHTML += `${linkifiedMessage}\n`;
});