Changed the conditionals for handling the first day of the month
Merge pull request #1 from reload/feature/the-first-day

Changed the conditionals for handling the first day of the month