AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

Use system local time zone instead of hardcoded UTC+8

Open roeseth opened this issue 1 year ago • 0 comments

Motivation

当提问涉及时间或调用工具涉及时间时,海外用户无法使用正确的当地时间

Modifications

开启 datetime_system_prompt 时,使用 datetime.astimezone() 获取系统本地时区时间

roeseth avatar Mar 09 '25 13:03 roeseth