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

Auto set current year and season quarter in event results #32

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

XanderRiga
Copy link
Collaborator

This won't be exact as seasons can sometimes run over by a week or
under, but generally iracing follows this scheme that they do 3 month
seasons starting in January.

@XanderRiga XanderRiga requested a review from Esterni July 20, 2020 19:32
@XanderRiga XanderRiga force-pushed the xriga/set-season-year-and-quarter branch from 81b14ce to 1779a8e Compare July 20, 2020 23:56
The year is easy enough to make current, but the quarter is a bit more
work, so we will let the user supply it for now while we find an
effective way to get the current quarter without making extra network
calls.

This also moves the `datetime_from_iracing_timestamp` to outside of
chart data, this converts unix timestamps from ms to datetimes and we
will be using this in more places than just the chart data objects.
@XanderRiga XanderRiga force-pushed the xriga/set-season-year-and-quarter branch from 1779a8e to 4a80ba1 Compare July 20, 2020 23:58
@Esterni Esterni merged commit 9b605d2 into master Jul 21, 2020
@Esterni Esterni deleted the xriga/set-season-year-and-quarter branch July 21, 2020 00:06
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.

2 participants