By this simple piece of java script code you can say good morning , good evening ,……. To the logged in user . The logic is quite simple the web page takes the system time and according to the time part the messages are created and displayed so messages are displayed regardless of the country time.