This commit is contained in:
weicao 2025-09-22 13:34:38 +08:00
parent 83b9fdbf9e
commit 7882f77bef

View File

@ -217,7 +217,7 @@ class StarRocksMetricsService:
if isinstance(date_value, str):
date_str = date_value
else:
# 如果是datetime对象格式化为字符串
# If it's a datetime object, format it as a string
if hasattr(date_value, 'strftime'):
date_str = date_value.strftime('%Y-%m-%d %H:%M:%S')
else: