Fixed logging of time_t for portability.