[open-ils-commits] r10991 - trunk/Open-ILS/src/offline
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 30 14:07:23 EDT 2008
Author: erickson
Date: 2008-10-30 14:07:20 -0400 (Thu, 30 Oct 2008)
New Revision: 10991
Modified:
trunk/Open-ILS/src/offline/offline.pl
Log:
treating a datetime string as epoch ...bad. fixed
Modified: trunk/Open-ILS/src/offline/offline.pl
===================================================================
--- trunk/Open-ILS/src/offline/offline.pl 2008-10-30 18:07:15 UTC (rev 10990)
+++ trunk/Open-ILS/src/offline/offline.pl 2008-10-30 18:07:20 UTC (rev 10991)
@@ -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