You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
getNow() does not support a server time that is updated in real time inside the amTimeAgo directive. This causes the time since text to be incorrect as amTimeAgoConfig.serverTime drifts from localDate.
The below code implements a fix for a dynamic server time however consideration will have to be made for users relying on the current behaviour.
@MarkKerby what is the use case for that? I can't think of a case where the local time of a machine will significantly drift in comparison with the server time?
The nature of our application means we don’t want to rely too much on the user’s system clock. So we let it perform the seconds ticking but we resynchronize it at regular intervals. This prevents, for example a user who sets their clock backwards from being shown e.g. “In 10 minutes” for something that has already happened.
We appreciate that would be an unusual thing to do but we need to avoid showing incorrect information in all cases that we can.
getNow() does not support a server time that is updated in real time inside the amTimeAgo directive. This causes the time since text to be incorrect as amTimeAgoConfig.serverTime drifts from localDate.
The below code implements a fix for a dynamic server time however consideration will have to be made for users relying on the current behaviour.
The text was updated successfully, but these errors were encountered: