Skip to content

Fixes - #2, #3#35

Open
jroers wants to merge 2 commits into
sf-wdi-25:masterfrom
jroers:sorting_months
Open

Fixes - #2, #3#35
jroers wants to merge 2 commits into
sf-wdi-25:masterfrom
jroers:sorting_months

Conversation

@jroers

@jroers jroers commented Feb 5, 2016

Copy link
Copy Markdown

Shout-out to incorrectly merging stuff...

Fixes #3
Fixes #2

So these two are linked. By solving issue 3, it solves issue 2.

Since months are designated by their number (1-12), all the months except December would remain the same. Taking the months' values %12 and adding one caused the disorder. 1 becomes 2, 2 becomes 3... 12 would become 1.

… numeric equivalent of the month's name (1 - January, 2 - February, 12 - December). Taking it mod 12 and adding 1 would turn December into January, January into February, etc.
@nathanallen

Copy link
Copy Markdown
Contributor

Nice work! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants