Amazon SES and ubuntu It must be within 300 secs/ of server time

When you try send mail through amazon SES you might get error like
This error comes when there is time difference between Amazon SES and server on which your application is hosted.

You can rectify this issue by synchronizing the server time with Amazon SES server time. You
need to keep the time difference between servers within 300 seconds.
1. To check Amazon SES time use
2. To check server time use
3. If time difference is greater then 300 sec please update server time. On ubuntu try
4. Check the time difference. If its greater then 300 sec you can manually set the time by one of the command given at