mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-01 10:21:46 +02:00
decode percent encoded URIs
This commit is contained in:
parent
cf628bfcd6
commit
538352fbf2
4 changed files with 31 additions and 8 deletions
|
@ -33,12 +33,12 @@ Log::Log(std::string ident, int facility)
|
|||
|
||||
std::string Log::Timestamp()
|
||||
{
|
||||
struct tm * dt;
|
||||
char buffer [30];
|
||||
struct tm * dt;
|
||||
char buffer [30];
|
||||
std::time_t t = std::time(nullptr);
|
||||
dt = localtime(&t);
|
||||
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H-%M-%S", dt);
|
||||
return std::string(buffer);
|
||||
dt = localtime(&t);
|
||||
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H-%M-%S", dt);
|
||||
return std::string(buffer);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue