use calendar.timegm to convert the time struct to utc timestamp