|
|
@@ -86,11 +86,11 @@ func randID() (val string, err error) {
|
|
|
}
|
|
|
|
|
|
// Clock that returns time in UTC rounded to seconds.
|
|
|
-type Clock int
|
|
|
+type Clock struct{}
|
|
|
|
|
|
// Now returns the UTC time rounded to seconds.
|
|
|
func (c *Clock) Now() time.Time {
|
|
|
- return time.Now().UTC().Round(time.Second)
|
|
|
+ return time.Now().UTC().Truncate(time.Second)
|
|
|
}
|
|
|
|
|
|
var clock = new(Clock)
|