I think everybody has localtime_r now, use it instead of localtime so we're
thread-safe.