fixed build test (afternoon is not properly handled)