Change time_t to int