diff --git a/examples/cookie/main.go b/examples/cookie/main.go index 2572558..ff3f7d9 100644 --- a/examples/cookie/main.go +++ b/examples/cookie/main.go @@ -71,7 +71,7 @@ func main() { func setcookies(host string, res *string) cdp.Tasks { return cdp.Tasks{ cdp.ActionFunc(func(ctxt context.Context, h cdptypes.Handler) error { - expr := cdptypes.Timestamp(time.Now().Add(180 * 24 * time.Hour)) + expr := cdptypes.TimeSinceEpoch(time.Now().Add(180 * 24 * time.Hour)) success, err := network.SetCookie(host, "cookiename", "cookievalue"). WithExpirationDate(&expr). WithDomain("localhost").