fixed build test (afternoon is not properly handled)
Merge pull request #481 from ml054/New3

fixed build test (afternoon is not properly handled)