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

Fix Christmas time detection (!) #1925

Merged
merged 1 commit into from
Dec 24, 2018
Merged

Conversation

Dune-jr
Copy link
Member

@Dune-jr Dune-jr commented Dec 24, 2018

In localtime, tm_mon ranges from 0 to 11:

struct tm {
   int tm_sec;         /* seconds,  range 0 to 59          */
   int tm_min;         /* minutes, range 0 to 59           */
   int tm_hour;        /* hours, range 0 to 23             */
   int tm_mday;        /* day of the month, range 1 to 31  */
   int tm_mon;         /* month, range 0 to 11             */
   int tm_year;        /* The number of years since 1900   */
   int tm_wday;        /* day of the week, range 0 to 6    */
   int tm_yday;        /* day in the year, range 0 to 365  */
   int tm_isdst;       /* daylight saving time             */	
};

@LordSk
Copy link
Member

LordSk commented Dec 24, 2018

I also suggest extending the time to the 31st at least, this seems a like a very short event for a game like Teeworlds.

@Dune-jr Dune-jr merged commit b4101dc into teeworlds:master Dec 24, 2018
@Dune-jr Dune-jr deleted the fix-xmas branch December 28, 2018 10:57
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