longhe.li

Results 3 comments of longhe.li

@kravorkid Yes, of course, and u can try run this code, it is useful: ``` dayjs.tz.setDefault("America/New_York") dayjs("2022-06-13T13:47:25Z").tz().format('YYYY-MM-DD HH:mm') -> 2022-06-13 09:47 ```

@kravorkid emmm, Ok, it's so weird. Maybe change the doc can help more people. [Time Zone](https://day.js.org/docs/en/timezone/timezone) in this link, two different usage seems to be the same, but actually different....

> > 直接调用上面示例文档中 agent.request 可以发出消息,但是得到的消息只能在 onUpdate 中拿到 > > 对于这个问题,我没有能够复现。 不好意思,这里可能我说的不明确,重点其实是最后面的跟 useXChat 一起使用时,想着 agent 传给 useXChat 了,它调用也许也会更新 useXChat 的 message 数据 现在想来,这个应该是类似于一个独立的一次性请求函数,所以这条可以忽略