Skip to content
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

account for gametime drift #79

Merged
merged 2 commits into from
Apr 22, 2024
Merged

account for gametime drift #79

merged 2 commits into from
Apr 22, 2024

Conversation

dealloc
Copy link
Member

@dealloc dealloc commented Apr 19, 2024

see #78
see #21

problem ended up being that the dates reported by the planet events and newsfeed are relative to the in-game time (WarInfo.StartDate and WarStatus.Time), however there's approximately 18 days deviation to 'real world' time (at the time of writing).

This patch introduces a MappingContext which, aside from cleaning up mapping code, also has RelativeGameStart and GameTimeDeviation properties for dealing with dates that are relative in-game.

@dealloc dealloc added bug Something isn't working mapping This issue or it's solution is related to how information is mapped labels Apr 19, 2024
@dealloc dealloc requested a review from a team April 19, 2024 20:22
@dealloc dealloc self-assigned this Apr 19, 2024
@dealloc dealloc linked an issue Apr 19, 2024 that may be closed by this pull request
Copy link
Contributor

@chatterchats chatterchats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Gametime Drift" when really it's 95% Adding MappingContext to everything. +1 Approved

@chatterchats chatterchats requested a review from lambstream April 19, 2024 21:43
@lambstream lambstream merged commit 6241275 into master Apr 22, 2024
3 checks passed
@lambstream lambstream deleted the fix/dates branch April 22, 2024 20:02
@dealloc dealloc linked an issue Apr 22, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mapping This issue or it's solution is related to how information is mapped
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Dispatches have incorrect publishing date Wrong Dates / Date formatting
3 participants