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
It is important to see when people have queued.
This information could help give an estimate of how long someone would have to wait before they queue or it could indicated that the TA's can not keep up with the demand.
Expected Behavior
The server returns the current UNIX time in ms.
Current Behavior
The server returns a time that is seemingly random.
Possible Solution
Change System.nanoTime() to System.currentTimeMillis()
https://github.com/UB-CSE/OfficeHours/blob/develop/src/main/scala/model/OfficeHoursServer.scala#L63
Steps to Reproduce
Context (Environment)
It is important to see when people have queued.
This information could help give an estimate of how long someone would have to wait before they queue or it could indicated that the TA's can not keep up with the demand.
Detailed Description
According to https://docs.oracle.com/javase/8/docs/api/java/lang/System.html, System.nanoTime() returns the
Returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds.
, not the current UNIX time.The text was updated successfully, but these errors were encountered: