From 0827547ceadc04c9c85af23fc36439cf80a3023d Mon Sep 17 00:00:00 2001 From: WangXiaoPeng Date: Thu, 18 Jun 2015 04:15:21 -0400 Subject: [PATCH] fixed the issue that token expire time was one month ealier than the correct time --- xCAT-server/sbin/xcatd | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 4f6a8af94..0ea124fa1 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -2289,6 +2289,7 @@ sub service_connection { my ($tokenid, $exptime) = xCAT::xcatd->gettoken($req); my ($sec,$min,$hour,$mday,$mon,$year) = localtime($exptime); $year += 1900; + $mon += 1; my $htime = "$year-$mon-$mday $hour:$min:$sec"; $resp = {data=>[{token => [{id => $tokenid, expire => $htime}]}]}; } else {