summaryrefslogtreecommitdiff
path: root/src/system.hh.in
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-11 05:19:01 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-11 05:19:01 -0400
commitf161aea8ce96c20f888cd65a78e178e5f5552dc2 (patch)
treeb8f9279c611fe08f1b10bb885144f7c275c7561d /src/system.hh.in
parent1a8e835bfe2cb18cd10691d7a4ab0fc478c4aced (diff)
downloadfork-ledger-f161aea8ce96c20f888cd65a78e178e5f5552dc2.tar.gz
fork-ledger-f161aea8ce96c20f888cd65a78e178e5f5552dc2.tar.bz2
fork-ledger-f161aea8ce96c20f888cd65a78e178e5f5552dc2.zip
Removed reliance on strptime/strftime
The code now uses Boost's input and output facets for times and dates. This ensures completely consistency regarding timezones and times, and fixes the regression test that was broken while I was away coding in London (where it was GMT-0 and I didn't notice the difference between local and GMT).
Diffstat (limited to 'src/system.hh.in')
-rw-r--r--src/system.hh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index 2358ddcd..1f4a7d63 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -53,6 +53,7 @@
#include <algorithm>
#include <exception>
#include <typeinfo>
+#include <locale>
#include <stdexcept>
#include <iostream>
#include <streambuf>
@@ -98,7 +99,6 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <cstdio>
#include <cstdlib>
#include <cstring>
-#include <ctime>
#include <csignal>
#if defined __FreeBSD__ && __FreeBSD__ <= 4
@@ -144,6 +144,8 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/cast.hpp>
#include <boost/current_function.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
+#include <boost/date_time/posix_time/posix_time_io.hpp>
+#include <boost/date_time/gregorian/gregorian_io.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/filesystem/exception.hpp>
#include <boost/filesystem/fstream.hpp>