Skip to content

Commit 3d18681

Browse files
committed
Fix redirect
1 parent 290996e commit 3d18681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PostgresTools/Date.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ sub older_than {
7171
open( my $STDOLD, '>&', STDERR );
7272
open( STDERR, '>>', '/dev/null' );
7373
my $now = dclone( $self->_now_ );
74-
open( STDOUT, '>&', $STDOLD );
74+
open( STDERR, '>&', $STDOLD );
7575
my $duration = DateTime::Duration->new( days => $offset );
7676
my $old_date = $now->subtract_duration($duration);
7777
return $date->subtract_datetime($old_date)->is_negative;
@@ -98,7 +98,7 @@ sub offset2date {
9898
open( my $STDOLD, '>&', STDERR );
9999
open( STDERR, '>>', '/dev/null' );
100100
my $now = dclone( $self->_now_ );
101-
open( STDOUT, '>&', $STDOLD );
101+
open( STDERR, '>&', $STDOLD );
102102
return $now->subtract_duration($duration);
103103
}
104104

0 commit comments

Comments
 (0)