From e2264d6c34de011753913dd9b447b3d38649619c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 16 May 2017 17:41:28 +0300 Subject: Adjust builds page style --- mod/mod-repository-details.cxx | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'mod/mod-repository-details.cxx') 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 -#include // tzset() - -#include #include // max() #include @@ -14,7 +11,7 @@ #include #include -#include +#include // to_string() #include #include @@ -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) -- cgit v1.1