Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发送消息的时间不准确 #150

Open
Dawnlee opened this issue Feb 20, 2021 · 2 comments
Open

发送消息的时间不准确 #150

Dawnlee opened this issue Feb 20, 2021 · 2 comments

Comments

@Dawnlee
Copy link

Dawnlee commented Feb 20, 2021

image
当前发送的消息是取的本地时间,是否有方法取环信服务器的时间

@myZhangDong
Copy link
Collaborator

因为本地发消息的时间和消息到服务器的时间相差很小,所以可以用本地时间作为发送时间,也符合用户体验,用户发出去就要看到消息的时间,而不是等服务端确认后再显示时间

@Dawnlee
Copy link
Author

Dawnlee commented Feb 24, 2021

本地时间有时会与服务器时间相差太多,导致聊天框展示的消息顺序不正确

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants