From 1476171e09857c5b89502299c64066ee915c8bc0 Mon Sep 17 00:00:00 2001 From: Sveta Smirnova Date: Mon, 1 Dec 2025 14:59:51 +0300 Subject: [PATCH] PT-2497 - t/pt-table-checksum/pt-2052.t fails in December - Adjusted formula for timelocal in the test file --- t/pt-table-checksum/pt-2052.t | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/t/pt-table-checksum/pt-2052.t b/t/pt-table-checksum/pt-2052.t index d515632c..9882dfe9 100644 --- a/t/pt-table-checksum/pt-2052.t +++ b/t/pt-table-checksum/pt-2052.t @@ -32,9 +32,9 @@ is( ) or diag($output); my ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[0]); -my $time_ts = timelocal($sec, $min, $hour, $day, $month); +my $time_ts = timelocal($sec, $min, $hour, $day, $month - 1); ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[1]); -my $time_tool = timelocal($sec, $min, $hour, $day, $month); +my $time_tool = timelocal($sec, $min, $hour, $day, $month - 1); cmp_ok( $time_ts - $time_tool, 'gt', 1, @@ -53,9 +53,9 @@ is( ) or diag($output); ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[0]); -$time_ts = timelocal($sec, $min, $hour, $day, $month); +$time_ts = timelocal($sec, $min, $hour, $day, $month - 1); ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[1]); -$time_tool = timelocal($sec, $min, $hour, $day, $month); +$time_tool = timelocal($sec, $min, $hour, $day, $month - 1); cmp_ok( $time_ts - $time_tool, 'gt', 1, @@ -74,9 +74,9 @@ is( ) or diag($output); ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[0]); -$time_ts = timelocal($sec, $min, $hour, $day, $month); +$time_ts = timelocal($sec, $min, $hour, $day, $month - 1); ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[1]); -$time_tool = timelocal($sec, $min, $hour, $day, $month); +$time_tool = timelocal($sec, $min, $hour, $day, $month - 1); cmp_ok( $time_ts - $time_tool, 'le', 1, @@ -95,9 +95,9 @@ is( ) or diag($output); ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[0]); -$time_ts = timelocal($sec, $min, $hour, $day, $month); +$time_ts = timelocal($sec, $min, $hour, $day, $month - 1); ($month, $day, $hour, $min, $sec) = split(/[T:-]+/, $times[1]); -$time_tool = timelocal($sec, $min, $hour, $day, $month); +$time_tool = timelocal($sec, $min, $hour, $day, $month - 1); cmp_ok( $time_ts - $time_tool, 'le', 1,