[open-ils-commits] r10988 - branches/rel_1_2_3/Open-ILS/src/offline
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 30 14:06:34 EDT 2008
Author: erickson
Date: 2008-10-30 14:06:30 -0400 (Thu, 30 Oct 2008)
New Revision: 10988
Modified:
branches/rel_1_2_3/Open-ILS/src/offline/offline.pl
Log:
treating a datetime string as epoch ...bad. fixed
Modified: branches/rel_1_2_3/Open-ILS/src/offline/offline.pl
===================================================================
--- branches/rel_1_2_3/Open-ILS/src/offline/offline.pl 2008-10-30 16:30:14 UTC (rev 10987)
+++ branches/rel_1_2_3/Open-ILS/src/offline/offline.pl 2008-10-30 18:06:30 UTC (rev 10988)
@@ -780,7 +780,7 @@
my ($grp) = grep {$_->id == $actor->profile} @$user_groups;
if($grp) {
my $seconds = OpenSRF::Utils->interval_to_seconds($grp->perm_interval);
- my $expire_date = DateTime->from_epoch(epoch => DateTime->now->epoch + $seconds);
+ my $expire_date = DateTime->from_epoch(epoch => DateTime->now->epoch + $seconds)->epoch;
$logger->debug("offline: setting expire date to $expire_date");
$actor->expire_date($U->epoch2ISO8601($expire_date));
}
More information about the open-ils-commits
mailing list