Skip to content

Commit

Permalink
suppress warnings for > 32-bit dates in obsolete Perl versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkypumpkin committed Dec 21, 2014
1 parent 439be92 commit ddfb041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions get_iplayer
Original file line number Diff line number Diff line change
Expand Up @@ -5185,6 +5185,10 @@ sub get_time_string {
$_ = shift;
my $diff = shift;

# suppress warnings for > 32-bit dates in obsolete Perl versions
local $SIG{__WARN__} = sub {
warn @_ unless $_[0] =~ m(^.* too (?:big|small));
};
# extract $year $mon $mday $hour $min $sec $tzhour $tzmin
my ($year, $mon, $mday, $hour, $min, $sec, $tzhour, $tzmin);
if ( m{(\d\d\d\d)\-(\d\d)\-(\d\d)T(\d\d):(\d\d):(\d\d)} ) {
Expand Down

0 comments on commit ddfb041

Please sign in to comment.