Sometimes when your machine is asleep a VM may not resync it's time with the NTP server. Here is a simple little script to reset it.
This can be especially important when time synchronization is key.
#re-sync time for a CentOS VM which was sleeping
Original Gist: https://gist.github.com/radius314/6156581