Skip to content

Commit c29b91c

Browse files
Jaak Pruulmann-Vengerfeldtwagnerrp
authored andcommitted
Correct timestamps usage in Perl bindings
This corrects which timestamps are used when applying values to formatting strings, properly using starttime and endtime for EPG values, rather than recstartts and recendts. Signed-off-by: Raymond Wagner <rwagner@mythtv.org>
1 parent 12aa7ca commit c29b91c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mythtv/bindings/perl/MythTV/Program.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ package MythTV::Program;
236236
my ($ssecond, $sminute, $shour, $sday, $smonth, $syear) = localtime($self->{'recstartts'});
237237
my ($esecond, $eminute, $ehour, $eday, $emonth, $eyear) = localtime($self->{'recendts'});
238238
# Program start/end times
239-
my ($spsecond, $spminute, $sphour, $spday, $spmonth, $spyear) = localtime($self->{'recstartts'});
240-
my ($epsecond, $epminute, $ephour, $epday, $epmonth, $epyear) = localtime($self->{'recendts'});
239+
my ($spsecond, $spminute, $sphour, $spday, $spmonth, $spyear) = localtime($self->{'starttime'});
240+
my ($epsecond, $epminute, $ephour, $epday, $epmonth, $epyear) = localtime($self->{'endtime'});
241241
# Format some fields we may be parsing below
242242
# Recording start time
243243
$syear += 1900;

0 commit comments

Comments
 (0)