Skip to content

Commit 12989c4

Browse files
committed
fixed coode bug
1 parent ffb00ad commit 12989c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function asString()
153153
$str .= urlencode($this->value);
154154
}
155155
if ($this->expire > 0) {
156-
$str .= '; expires='.gmdate("D, d-M-Y H:i:s T", $this->expire);
156+
$str .= '; expires='.gmdate("D, d-M-Y H:i:s T", time () + $this->expire);
157157
}
158158
if ($this->path) {
159159
$str .= '; path='.$this->path;

0 commit comments

Comments
 (0)