Skip to content

Commit

Permalink
fixup! src: change getCurrentTimestamp() to use only c++ functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmco committed Jul 19, 2024
1 parent 2cce8d4 commit b36e014
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

#include <cloysterhpc/functions.h>

#include <chrono>
#include <cstdlib> /* getenv() */
#include <iostream>
#include <chrono>

#include <boost/process.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <cloysterhpc/services/log.h>

#include <fmt/format.h>
#include <fmt/chrono.h>
#include <fmt/format.h>
#include <fstream>

namespace cloyster {
Expand Down Expand Up @@ -157,7 +157,8 @@ std::string getCurrentTimestamp()
using sec = std::chrono::seconds;

std::chrono::time_point<clock> current_time = clock::now();
auto result = fmt::format("{:%FT%TZ}", std::chrono::time_point_cast<sec>(current_time));
auto result = fmt::format(
"{:%FT%TZ}", std::chrono::time_point_cast<sec>(current_time));

return result;
}
Expand Down

0 comments on commit b36e014

Please sign in to comment.