Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 5, 2023
1 parent ab855ff commit e13a229
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/server/network/webhook/webhook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ void WebHook::closeConnection(HINTERNET hSession /* = nullptr*/, HINTERNET hConn
#endif

std::string getCurrentUTCTimeString() {
auto now = std::chrono::system_clock::now();
auto time_t_now = std::chrono::system_clock::to_time_t(now);
std::tm tm;
auto now = std::chrono::system_clock::now();
auto time_t_now = std::chrono::system_clock::to_time_t(now);
std::tm tm;
#ifdef _MSC_VER
gmtime_s(&tm, &time_t_now);
gmtime_s(&tm, &time_t_now);
#else
gmtime_r(&time_t_now, &tm);
gmtime_r(&time_t_now, &tm);
#endif
std::stringstream ss;
ss << std::put_time(&tm, "%R") << " UTC";
return ss.str();
std::stringstream ss;
ss << std::put_time(&tm, "%R") << " UTC";
return ss.str();
}

// Função que envia uma mensagem para um webhook
Expand Down

0 comments on commit e13a229

Please sign in to comment.