mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1921 from xiang90/fix_time
store: return utc time to user
This commit is contained in:
commit
d5d034ecd2
@ -150,7 +150,8 @@ func (n *node) expirationAndTTL(clock clockwork.Clock) (*time.Time, int64) {
|
||||
if (ttlN % time.Second) > 0 {
|
||||
ttl++
|
||||
}
|
||||
return &n.ExpireTime, int64(ttl)
|
||||
t := n.ExpireTime.UTC()
|
||||
return &t, int64(ttl)
|
||||
}
|
||||
return nil, 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user