Ticket #4099: mythtv-perl_bindings-format_name-leading_zero_for_seconds.patch
File mythtv-perl_bindings-format_name-leading_zero_for_seconds.patch, 1.3 KB (added by , 17 years ago) |
---|
-
bindings/perl/MythTV/Program.pm
250 250 } 251 251 $shour = "0$shour" if ($shour < 10); 252 252 $sminute = "0$sminute" if ($sminute < 10); 253 $ssecond = "0$ssecond" if ($ssecond < 10); 253 254 # Recording end time 254 255 $eyear += 1900; 255 256 $emonth++; … … 265 266 } 266 267 $ehour = "0$ehour" if ($ehour < 10); 267 268 $eminute = "0$eminute" if ($eminute < 10); 269 $esecond = "0$esecond" if ($esecond < 10); 268 270 # Program start time 269 271 $spyear += 1900; 270 272 $spmonth++; … … 280 282 } 281 283 $sphour = "0$sphour" if ($sphour < 10); 282 284 $spminute = "0$spminute" if ($spminute < 10); 285 $spsecond = "0$spsecond" if ($spsecond < 10); 283 286 # Program end time 284 287 $epyear += 1900; 285 288 $epmonth++; … … 295 298 } 296 299 $ephour = "0$ephour" if ($ephour < 10); 297 300 $epminute = "0$epminute" if ($epminute < 10); 301 $epsecond = "0$epsecond" if ($epsecond < 10); 298 302 # Original airdate 299 303 my ($oyear, $omonth, $oday) = split('-', $self->{'airdate'}, 3); 300 304 # Build a list of name format options