summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-09 19:50:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-09 19:50:23 -0400
commit475014a14be8a1ee4a82075113f8ca11ceca9f5b (patch)
tree77e3f7a909bbdefb4983225ae6da65123e23ef24 /src/times.h
parent071273aa3e81e3bfc15266d432582b10959acb95 (diff)
downloadfork-ledger-475014a14be8a1ee4a82075113f8ca11ceca9f5b.tar.gz
fork-ledger-475014a14be8a1ee4a82075113f8ca11ceca9f5b.tar.bz2
fork-ledger-475014a14be8a1ee4a82075113f8ca11ceca9f5b.zip
Added some missing casts, upgraded to Boost 1.40
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h2
1 files changed, 1 insertions, 1 deletions
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<std::string>& 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;