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

Create season info #141

Merged
merged 3 commits into from
May 25, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
review feedback
.
  • Loading branch information
delphiactual committed May 25, 2020
commit c7d1ff82771fb5c7b7d2e636b12800b10a0545bf
2 changes: 1 addition & 1 deletion data/seasons/d2-season-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const D2SeasonInfo = {

function getCurrentSeason(): number {
let seasonDate: Date;
const today = new Date(Date.now());
const today = new Date();
for (let i = D2SeasonEnum.__LENGTH - 1; i > 0; i--) {
seasonDate = new Date(`${D2SeasonInfo[i].releaseDate}T${D2SeasonInfo[i].resetTime}`);
if (today >= seasonDate) {
Expand Down
2 changes: 1 addition & 1 deletion output/d2-season-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const D2SeasonInfo = {

function getCurrentSeason(): number {
let seasonDate: Date;
const today = new Date(Date.now());
const today = new Date();
for (let i = D2SeasonEnum.__LENGTH - 1; i > 0; i--) {
seasonDate = new Date(`${D2SeasonInfo[i].releaseDate}T${D2SeasonInfo[i].resetTime}`);
if (today >= seasonDate) {
Expand Down