use gmtime to convert the time struct to utc timestamp