mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
gui/dboxinfo: localize (partially based on patch from Benny -- thanks!)
Conflicts:
src/gui/dboxinfo.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 742760dbd3
Author: martii <m4rtii@gmx.de>
Date: 2014-05-24 (Sat, 24 May 2014)
------------------
This commit was generated by Migit
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