mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
gui/dboxinfo: localize (partially based on patch from Benny -- thanks!)
Conflicts: src/gui/dboxinfo.cpp
This commit is contained in:
@@ -398,6 +398,12 @@ std::string strftime(const char *format, const struct tm *tm)
|
||||
return std::string(buf);
|
||||
}
|
||||
|
||||
std::string strftime(const char *format, time_t when, bool gm)
|
||||
{
|
||||
struct tm *t = gm ? gmtime(&when) : localtime(&when);
|
||||
return strftime(format, t);
|
||||
}
|
||||
|
||||
time_t toEpoch(std::string &date)
|
||||
{
|
||||
struct tm t;
|
||||
|
Reference in New Issue
Block a user