Fix compile error in gcc, use std::strftime instead of std::put_time