time_t fix