mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-14 03:37:31 +08:00
新增时间偏移
This commit is contained in:
@@ -108,4 +108,7 @@ func Now() time.Time{
|
|||||||
return time.Now().Add(timeOffset)
|
return time.Now().Add(timeOffset)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetTimeOffset 设置时间偏移量
|
||||||
|
func SetTimeOffset(offset time.Duration) {
|
||||||
|
timeOffset = offset
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user