summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-28 20:02:33 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-28 20:02:33 +0000
commit51cf7f7282d70aaca5046d7e9b872522d50dd545 (patch)
tree68f4ebfe041b75c76a1c5146c4886ce70eb10fe0
parentDon't call service method with a default Ice::Current (diff)
downloadp2pvr-51cf7f7282d70aaca5046d7e9b872522d50dd545.tar.bz2
p2pvr-51cf7f7282d70aaca5046d7e9b872522d50dd545.tar.xz
p2pvr-51cf7f7282d70aaca5046d7e9b872522d50dd545.zip
Switch to new libadhoc ctf-printfp2pvr-0.3.2
-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)
{