mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
fix xmltv time offsets
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7e5029e75d
Author: TangoCash <eric@loxat.de>
Date: 2018-10-28 (Sun, 28 Oct 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3278,11 +3278,11 @@ void CControlAPI::xmltvepgCGI(CyhookHandler *hh)
|
||||
programmeTag = "programme ";
|
||||
programmeTag += "channel=\""+string_printf(PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS, channel_id)+"\" ";
|
||||
char zbuffer[25] = { 0 };
|
||||
struct tm *mtime = localtime(&eventIterator->startTime);
|
||||
struct tm *mtime = gmtime(&eventIterator->startTime);
|
||||
strftime(zbuffer, 21, "%Y%m%d%H%M%S %z", mtime);
|
||||
programmeTag += "start=\""+std::string(zbuffer)+"\" ";
|
||||
long _stoptime = eventIterator->startTime + eventIterator->duration;
|
||||
mtime = localtime(&_stoptime);
|
||||
mtime = gmtime(&_stoptime);
|
||||
strftime(zbuffer, 21, "%Y%m%d%H%M%S %z", mtime);
|
||||
programmeTag += "stop=\""+std::string(zbuffer)+"\" ";
|
||||
|
||||
|
Reference in New Issue
Block a user