[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. da96028092880cd2f1d5a03b2de1239412adbccd
Evergreen Git
git at git.evergreen-ils.org
Tue Jan 15 19:47:46 EST 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_2 has been updated
via da96028092880cd2f1d5a03b2de1239412adbccd (commit)
from 8b8f0a0e0a51a5321729cc1a58578099b33401fb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit da96028092880cd2f1d5a03b2de1239412adbccd
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Fri Nov 2 09:53:30 2012 -0400
Fix backdate near DST changes
When the due date and the backdate date are on opposite sides of a DST
boundary we were getting an hour off on the checkin time (using the
original due date's time).
This commit changes it so that instead we just set the hour and minute
values on the backdate date to the due date's versions, leaving the time
zone alone.
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
index 781489d..e696934 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
@@ -3421,7 +3421,9 @@ sub checkin_handle_backdate {
my $bd = cleanse_ISO8601($self->backdate);
my $original_date = DateTime::Format::ISO8601->new->parse_datetime(cleanse_ISO8601($self->circ->due_date));
my $new_date = DateTime::Format::ISO8601->new->parse_datetime($bd);
- $bd = cleanse_ISO8601($new_date->ymd . 'T' . $original_date->strftime('%T%z'));
+ $new_date->set_hour($original_date->hour());
+ $new_date->set_minute($original_date->minute());
+ $bd = cleanse_ISO8601($new_date->datetime());
$self->backdate($bd);
return undef;
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/Application/Circ/Circulate.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list