Skip to content

Commit

Permalink
decode/table: tabl_4e: add unixTimeBegin / unixTimeEnd to eitEV JSON …
Browse files Browse the repository at this point in the history
…object

relates to #17

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
  • Loading branch information
mkrufky committed Jun 19, 2016
1 parent 1d4bd60 commit e229849
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libdvbtee/decode/table/tabl_4e.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ eitEV::eitEV(decoded_eit_t& decoded_eit, Decoder *parent, const dvbpsi_eit_event
cur_event.name.assign(d->get<std::string>("name").c_str());
cur_event.text.assign(d->get<std::string>("text").c_str());
}
#if EIT_DBG
time_t start = datetime_utc(cur_event.start_time /*+ (60 * tz_offset)*/);
time_t end = datetime_utc(cur_event.start_time + cur_event.length_sec /*+ (60 * tz_offset)*/);

set("unixTimeBegin", start);
set("unixTimeEnd", end);

#if EIT_DBG
struct tm tms = *localtime(&start);
struct tm tme = *localtime(&end);

Expand Down

0 comments on commit e229849

Please sign in to comment.