From 475014a14be8a1ee4a82075113f8ca11ceca9f5b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 9 Oct 2009 19:50:23 -0400 Subject: Added some missing casts, upgraded to Boost 1.40 --- src/times.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/times.h') diff --git a/src/times.h b/src/times.h index 141066a5..1ff98325 100644 --- a/src/times.h +++ b/src/times.h @@ -110,7 +110,7 @@ inline std::string format_datetime(const datetime_t& when, const optional& format = none) { char buf[256]; - time_t moment = to_time_t(when); + std::time_t moment = to_time_t(when); std::strftime(buf, 255, format ? format->c_str() : output_datetime_format.c_str(), std::localtime(&moment)); return buf; -- cgit v1.2.3