store: return utc time to user

release-2.0
Xiang Li 2014-12-11 16:24:33 -08:00
parent 3a83ab1b71
commit 773f112a5d
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ func (n *node) expirationAndTTL(clock clockwork.Clock) (*time.Time, int64) {
if (ttlN % time.Second) > 0 { if (ttlN % time.Second) > 0 {
ttl++ ttl++
} }
return &n.ExpireTime, int64(ttl) t := n.ExpireTime.UTC()
return &t, int64(ttl)
} }
return nil, 0 return nil, 0
} }