[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4832] branches/1.3/t/03-date-handling.t



Revision: 4832
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4832&view=rev
Author:   einhverfr
Date:     2012-06-04 08:49:58 +0000 (Mon, 04 Jun 2012)
Log Message:
-----------
Test case correction:

Behavior of from_to changed for 1.3.18.  The old behavior was to try to return a date in the user's datestyle, however since this is always used to generate dates for SQL queries, this was removed.  The dates are then expected to be run through ->format_date() or ->date() separately.

This was necessary to fix bugs in from_to handling with certain date formats. This corrects the test case (only) to reflect this change in usage.

Modified Paths:
--------------
    branches/1.3/t/03-date-handling.t

Modified: branches/1.3/t/03-date-handling.t
===================================================================
--- branches/1.3/t/03-date-handling.t	2012-06-04 07:48:58 UTC (rev 4831)
+++ branches/1.3/t/03-date-handling.t	2012-06-04 08:49:58 UTC (rev 4832)
@@ -183,8 +183,8 @@
 # (2 + 23), 25 - 12, 13 - 1, 12
 foreach my $format (0 .. $#formats) {
 	$form->{db_dateformat} = $formats[$format][0];
-	my $fmt = $formats[$format][0];
-	my $sep = $formats[$format][1];
+	my $fmt = 'yyyy-mm-dd';
+	my $sep = '-';
 	my $yearcount = $formats[$format][2];
 	my $results = $fmt;
 	$results =~ s/(yy)?yy/1999/;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.