Skip to content

Converted RoundStartTime to UTC in ServerStatusCache#99

Open
QuillTheCreature wants to merge 1 commit into
Simple-Station:masterfrom
QuillTheCreature:fixnegativetime
Open

Converted RoundStartTime to UTC in ServerStatusCache#99
QuillTheCreature wants to merge 1 commit into
Simple-Station:masterfrom
QuillTheCreature:fixnegativetime

Conversation

@QuillTheCreature

Copy link
Copy Markdown

This fixes #91

From the looks of it, the TimerTextCell shows the current lobby time by DateTime.UtcNow.Subtract(LobbyStartTime);

However, LobbyStartTime gets parsed with DateTime.Parse() which results in a local DateTime and not a UTC DateTime Therefore, the subtract method is creating a bad result.

Before:

image

After:

image

Signed-off-by: Quill <292788791+QuillTheCreature@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time is shown as negative

1 participant