I have entered the ready to use java script and published ok but the greeting stays on "good morning!" regardless of time of day.

I presumed this should change to an afternoon and evening greeting, as suggested in the script properties, according to the time of day.

Can anyone advise.