[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.5-64-gb82d5d7

Alex Vandiver alexmv at bestpractical.com
Tue Jun 24 23:54:32 EDT 2014


The branch, 4.2-trunk has been updated
       via  b82d5d7072e47e3d2396e4e4bf26adf3c491c0d5 (commit)
      from  9458745a66de9875843457f5cd688fbfa62d572e (commit)

Summary of changes:
 lib/RT/Date.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit b82d5d7072e47e3d2396e4e4bf26adf3c491c0d5
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Jun 24 17:37:15 2014 -0400

    Pass the right number of arguments to sprintf

diff --git a/lib/RT/Date.pm b/lib/RT/Date.pm
index e98ed35..dca3434 100644
--- a/lib/RT/Date.pm
+++ b/lib/RT/Date.pm
@@ -831,7 +831,7 @@ sub ISO {
     my $res = '';
     $res .= sprintf("%04d-%02d-%02d", $year, $mon, $mday) if $args{'Date'};
     $res .= sprintf(' %02d:%02d', $hour, $min) if $args{'Time'};
-    $res .= sprintf(':%02d', $sec, $min) if $args{'Time'} && $args{'Seconds'};
+    $res .= sprintf(':%02d', $sec) if $args{'Time'} && $args{'Seconds'};
     $res =~ s/^\s+//;
 
     return $res;
@@ -871,7 +871,7 @@ sub W3CDTF {
     $res .= sprintf("%04d-%02d-%02d", $year, $mon, $mday);
     if ( $args{'Time'} ) {
         $res .= sprintf('T%02d:%02d', $hour, $min);
-        $res .= sprintf(':%02d', $sec, $min) if $args{'Seconds'};
+        $res .= sprintf(':%02d', $sec) if $args{'Seconds'};
         if ( $offset ) {
             $res .= sprintf "%s%02d:%02d", $self->_SplitOffset( $offset );
         } else {

-----------------------------------------------------------------------


More information about the rt-commit mailing list