Fix for potential bug in greetingTime()