summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p2pvr/ice/chronoHelpers.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/p2pvr/ice/chronoHelpers.cpp b/p2pvr/ice/chronoHelpers.cpp
index 058a99f..b9cebcd 100644
--- a/p2pvr/ice/chronoHelpers.cpp
+++ b/p2pvr/ice/chronoHelpers.cpp
@@ -2,22 +2,10 @@
#include <iomanip>
#include <boost/numeric/conversion/cast.hpp>
#include <compileTimeFormatter.h>
-
-namespace AdHoc {
- template<const char * const & S, int start, typename stream, char size, char pad, char ... sn>
- struct StreamWriter<S, start, stream, '%', size, pad, 'p', sn...> :
- public StreamWriterBase<S, start, 4, stream, sn...> {
- template<typename P, typename ... Pn>
- static void write(stream & s, const P & p, const Pn & ... pn)
- {
- s << std::setw(size) << std::setfill(pad) << p;
- StreamWriter::next(s, pn...);
- }
- };
-}
+#include <ctf-impl/printf-compat.h>
namespace Chrono {
- AdHocFormatter(DateTimeFormat, "%0p-%0p-%0pT%0p:%0p");
+ AdHocFormatter(DateTimeFormat, "%04d-%02d-%02dT%02d:%02d");
std::ostream &
operator<<(std::ostream & o, const DateTime & dt)
{