Converted gmmktime to time in sync