Fixed a mishap in clock logic

def getGreeting()