Skip to content

Commit

Permalink
Fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
roa committed Apr 30, 2017
1 parent 290996e commit 3d18681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PostgresTools/Date.pm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ sub older_than {
open( my $STDOLD, '>&', STDERR );
open( STDERR, '>>', '/dev/null' );
my $now = dclone( $self->_now_ );
open( STDOUT, '>&', $STDOLD );
open( STDERR, '>&', $STDOLD );
my $duration = DateTime::Duration->new( days => $offset );
my $old_date = $now->subtract_duration($duration);
return $date->subtract_datetime($old_date)->is_negative;
Expand All @@ -98,7 +98,7 @@ sub offset2date {
open( my $STDOLD, '>&', STDERR );
open( STDERR, '>>', '/dev/null' );
my $now = dclone( $self->_now_ );
open( STDOUT, '>&', $STDOLD );
open( STDERR, '>&', $STDOLD );
return $now->subtract_duration($duration);
}

Expand Down

0 comments on commit 3d18681

Please sign in to comment.