[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 435443ea15e349404f58da2b7708e2c33072314a

jesse jesse at bestpractical.com
Mon Jan 19 11:43:15 EST 2009


The branch, master has been updated
       via  435443ea15e349404f58da2b7708e2c33072314a (commit)
      from  cd419fb279aae5741c7c36fc91c5d15d3f540344 (commit)

Summary of changes:
 lib/App/SD/Model/Ticket.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 435443ea15e349404f58da2b7708e2c33072314a
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Jan 19 11:42:38 2009 -0500

    There was a mistaken "\n" canonicalized into due dates

diff --git a/lib/App/SD/Model/Ticket.pm b/lib/App/SD/Model/Ticket.pm
index ef58e11..2eee4b6 100644
--- a/lib/App/SD/Model/Ticket.pm
+++ b/lib/App/SD/Model/Ticket.pm
@@ -93,7 +93,7 @@ sub canonicalize_prop_due {
     my $dt = $parser->parse_datetime($props->{due});
     if ($parser->success) {
      # operate on $dt/@dt, for example:
-        $props->{due} = sprintf( "%04d-%02d-%02d %02d:%02d:%02d\n", $dt->year, $dt->month, $dt->day, $dt->hour, $dt->min, $dt->sec);
+        $props->{due} = sprintf( "%04d-%02d-%02d %02d:%02d:%02d", $dt->year, $dt->month, $dt->day, $dt->hour, $dt->min, $dt->sec);
     }
     return 1;
 }

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



More information about the Bps-public-commit mailing list