-
Notifications
You must be signed in to change notification settings - Fork 433
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
Negative call time #10551
Comments
https://github.com/nextcloud/spreed/blob/master/src/utils/formattedTime.js#L9 if (!time || time < 0) But we should investigate it deeper, to identify the source UPD.: could the conversation.callStartTime timestamp be higher, than a current time? |
Was your browser time zone CET? Maybe the callStartTime got overwritten by the message timestamp spreed/src/store/messagesStore.js Line 1070 in da83acc
The timestamp is in UTC time. |
yes should be
cc @ChristophWurst you remember that? |
I do not remember unfortunately |
Closing for now, feel free to reopen or comment when it happens again |
Same issue here. Talk app version: 19.0.4
web UI shows negative time, starting from Both clients and the server are in London/Europe timezone. |
you had the chance to look into the database what the active_since field is in the oc_talk_rooms table? |
Hey!! I reproduced the same issue here. The problem happens because there is a difference between the local machine clock and the server clock. When we start/join a call, the active_since field gets the server clock, and to show the correct timer, Talk calculates the difference between this field and the local machine clock, resulting in the problem. Hope it helps! :D |
But the time is a timestamp and that is globally aligned to just +1 each second since 1st January 1970. |
We experimented a bit yesterday, either server time is in the future or client time is in the past. But if the client/server times are off, there can also be more/other issues (signaling messages from future, JWT token could be expired, ...) so we'll ignore it a bit longer until we have a better idea of what to do |
To put it somewhere. On talk-ios the issue is the same, but since we are converting to a string and assuming we have an unsigned int, we get the result as mentioned above. One way to work around would be to make sure we don't have a negative duration on the client side: nextcloud/talk-ios#1757. This will result in the duration being "00:00" until we catched up with the server time. If we want to have a correct duration, on way would be:
Example: In the end, times should be correct one way or another and 3m30s offset is way too big and will lead to other issues (as mentioned above). |
How to use GitHub
Steps to reproduce
Expected behaviour
Call timer shows reasonable time or only starts when both joined the call.
Actual behaviour
Call timer is negative
Talk app
Talk app version: (see apps admin page:
/index.php/settings/apps
)Custom Signaling server configured: yes/no and version (see additional admin settings:
/index.php/index.php/settings/admin/talk#signaling_server
)Custom TURN server configured: yes/no (see additional admin settings:
/index.php/settings/admin/talk#turn_server
)Custom STUN server configured: yes/no (see additional admin settings:
/index.php/settings/admin/talk#stun_server
)Browser
Microphone available: yes/no
Camera available: yes/no
Operating system: Windows/Ubuntu/...
Browser name: Firefox/Chrome/...
Browser version: 85/96/...
Browser log
Server configuration
Operating system: Ubuntu/RedHat/...
Web server: Apache/Nginx
Database: MySQL/Maria/SQLite/PostgreSQL
PHP version: 8.0/8.1/8.2
Nextcloud Version: (see admin page)
List of activated apps:
Nextcloud configuration:
Server log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: