Skip to content

Commit

Permalink
changed to utc now
Browse files Browse the repository at this point in the history
  • Loading branch information
daerup committed May 12, 2024
1 parent b3545b7 commit ceaa26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Schnacc.UserInterface/PlayAreaView/PlayAreaPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ private Direction Direction

lock (this._directionLock)
{
if (DateTime.Now.Subtract(this._lastDirectionChange) > TimeSpan.FromMilliseconds(500))
if (DateTime.UtcNow.Subtract(this._lastDirectionChange) > TimeSpan.FromMilliseconds(500))
{
this._directionsBuffer.Clear();
}

this._lastDirectionChange = DateTime.Now;
this._lastDirectionChange = DateTime.UtcNow;
this._directionsBuffer.Enqueue(value);
this._lastDirection = value;
}
Expand Down

0 comments on commit ceaa26e

Please sign in to comment.