mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
sectionsd: move function build_time() to helpers
Origin commit data
------------------
Commit: 3c23415516
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Origin message was:
------------------
- sectionsd: move function build_time() to helpers
This commit is contained in:
@@ -2032,6 +2032,15 @@ bool isDigitWord(std::string str)
|
||||
return true;
|
||||
}
|
||||
|
||||
time_t GetBuildTime()
|
||||
{
|
||||
static const char *built = __DATE__ " " __TIME__;
|
||||
struct tm t;
|
||||
t.tm_isdst = -1;
|
||||
strptime(built, "%b %d %Y %H:%M:%S", &t);
|
||||
return mktime(&t);
|
||||
}
|
||||
|
||||
int getBoxMode()
|
||||
{
|
||||
int boxmode = -1;
|
||||
|
Reference in New Issue
Block a user