Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Why the times inthe test don't match #9

Closed
Yehouda opened this issue Nov 16, 2023 · 0 comments · Fixed by #10
Closed

Why the times inthe test don't match #9

Yehouda opened this issue Nov 16, 2023 · 0 comments · Fixed by #10

Comments

@Yehouda
Copy link

Yehouda commented Nov 16, 2023

:expires (encode-universal-time 6 22 19 25 1 2002)

(is (string= "name3=value3; Expires=Sat, 26 Jan 2002 00:22:06 GMT; Path=/; Domain=example.com; Secure"

*cookie3* and *cookie4* are set to expire on "25 Jan 2002 19:22:06", but the test looks for the string "26 Jan 2002 00:22:06".
Why the 5 hours gap?
Looks like a mismatch between Eastern Time Zone and GMT.
encode-universal-time and decode-universal-time take extra &optional argument timezone time-zone, maybe you eed to use this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant