diff --git a/lib/Bric/Changes.pod b/lib/Bric/Changes.pod index df57daae4..114b4724e 100644 --- a/lib/Bric/Changes.pod +++ b/lib/Bric/Changes.pod @@ -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 diff --git a/lib/Bric/SOAP/Util.pm b/lib/Bric/SOAP/Util.pm index 3244c5229..d8134c431 100644 --- a/lib/Bric/SOAP/Util.pm +++ b/lib/Bric/SOAP/Util.pm @@ -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; }