Arsen Musayelyan
b757af7fed
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
14 lines
238 B
Go
14 lines
238 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"go.arsenm.dev/itd/internal/rpc"
|
|
)
|
|
|
|
func (c *Client) SetTime(ctx context.Context, t time.Time) error {
|
|
_, err := c.client.SetTime(ctx, &rpc.SetTimeRequest{UnixNano: t.UnixNano()})
|
|
return err
|
|
}
|