aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-repository-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-16 17:41:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-16 17:41:28 +0300
commite2264d6c34de011753913dd9b447b3d38649619c (patch)
tree799211a14a4ba8d5a9d3f8d35b71a502a6ff0c3f /mod/mod-repository-details.cxx
parent5163436b00711318baea4fc0ad43a4de8222354a (diff)
Adjust builds page style
Diffstat (limited to 'mod/mod-repository-details.cxx')
-rw-r--r--mod/mod-repository-details.cxx19
1 files changed, 5 insertions, 14 deletions
diff --git a/mod/mod-repository-details.cxx b/mod/mod-repository-details.cxx
index f4027b6..b8b88bc 100644
--- a/mod/mod-repository-details.cxx
+++ b/mod/mod-repository-details.cxx
@@ -4,9 +4,6 @@
#include <mod/mod-repository-details.hxx>
-#include <time.h> // tzset()
-
-#include <sstream>
#include <algorithm> // max()
#include <libstudxml/serializer.hxx>
@@ -14,7 +11,7 @@
#include <odb/database.hxx>
#include <odb/transaction.hxx>
-#include <libbutl/timestamp.hxx>
+#include <libbutl/timestamp.hxx> // to_string()
#include <web/xhtml.hxx>
#include <web/module.hxx>
@@ -53,8 +50,6 @@ init (scanner& s)
if (options_->root ().empty ())
options_->root (dir_path ("/"));
-
- tzset (); // To use butl::to_stream() later on.
}
bool brep::repository_details::
@@ -125,14 +120,10 @@ handle (request& rq, response& rs)
s << *BR;
}
- ostringstream o;
- butl::to_stream (o,
- max (r.packages_timestamp, r.repositories_timestamp),
- "%Y-%m-%d %H:%M:%S%[.N] %Z",
- true,
- true);
-
- s << o.str ()
+ s << butl::to_string (max (r.packages_timestamp, r.repositories_timestamp),
+ "%Y-%m-%d %H:%M:%S%[.N] %Z",
+ true,
+ true)
<< ~P;
if (r.description)