Skip to content

Commit

Permalink
Fix for Bug # 122.
Browse files Browse the repository at this point in the history
Export the proper year in the first three days of 2010 via SOAP.
  • Loading branch information
theory committed Jan 2, 2010
1 parent 6e66a40 commit 7fbe2c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions lib/Bric/Changes.pod
Expand Up @@ -24,6 +24,18 @@ report and fix. [David]

=back

=head2 Bug Fixes

=over

=item *

Cover dates are no longer exported with the wrong year (2009) when their dates
are in the first three days of 2010. Thanks to Paul Orrock for the spot (Bug
#122) and David Oliveira via Bret Dawson for the fix! [David]

=back

=head1 VERSION 1.10.8 (2009-11-14)

=head2 Improvements
Expand Down
2 changes: 1 addition & 1 deletion lib/Bric/SOAP/Util.pm
Expand Up @@ -212,7 +212,7 @@ Notes: NONE

sub db_date_to_xs_date {
my $db = shift;
my $xs = strfdate(local_date($db, "epoch"), "%G-%m-%dT%TZ", 1);
my $xs = strfdate(local_date($db, "epoch"), "%Y-%m-%dT%TZ", 1);
print STDERR "db_date_to_xs_date:\n $db\n $xs\n\n" if DEBUG;
return $xs;
}
Expand Down

0 comments on commit 7fbe2c6

Please sign in to comment.