Giter Site home page Giter Site logo

Comments (7)

Xliff avatar Xliff commented on August 23, 2024 1

All tests pass, here. This issue can be closed.

from cro-http.

Altai-man avatar Altai-man commented on August 23, 2024

Hmm, unfortunately, I am having an issue with reproducing it.

Wed Nov  7 04:05:07 +10 2018
➜  cro-http git:(master) /home/koto/.rakudobrew/moar-master/install/bin/perl6 --version
This is Rakudo version 2018.10-78-g8b93ec9f5 built on MoarVM version 2018.10-72-g4fbaeee5f
implementing Perl 6.d.
➜  cro-http git:(master) /home/koto/.rakudobrew/moar-master/install/bin/perl6 -Ilib t/http-cookiejar.t 
ok 1 - Empty cookie jar contents returns empty list
ok 2 - Empty cookie jar contents with uri returns empty list
ok 3 - Two cookies were added
ok 4 - Cookie addition is neutral
ok 5 - Cookie with bad domain was not added
ok 6 - Uri-based check
ok 7 - Good cookies are here
ok 8 - Clear for absent url leaves jar untouched
ok 9 - Clear for absent url with existing cookie name leaves jar untouched
ok 10 - One cookie was removed
ok 11 - All cookies from correct domain were removed
ok 12 - Call to clear clears cookie jar
ok 13 - Cookie with duration was added successfully
ok 14 - Creation time is preserved during cookie update
ok 15 - Cookie was deleted on negative-time cookie addition
ok 16 - Cookies are added for sub-domains
ok 17 - Rejected for incorrect sub-domain
ok 18 - Header was added
ok 19 - Setted string is correct
1..19
➜  cro-http git:(master) 

I also changed timezone as jnthn suggested, so

➜  cro-http git:(master) date
Wed Nov  7 04:04:50 +10 2018

^ no luck with that.

I've built the same rakudo version. I am on a linux setup. Do you have any clues what might be important here?

from cro-http.

japhb avatar japhb commented on August 23, 2024

What timezone did you change it to? I got the same failure as Xliff did from Pacific Time (UTC-8), and I think it's dependent on being >5 hours west of UTC, so that (((now in local time) + 5 hours) reinterpreted as UTC) appears to be in the past.

from cro-http.

Altai-man avatar Altai-man commented on August 23, 2024

Reproduced that, fixing.

from cro-http.

Altai-man avatar Altai-man commented on August 23, 2024

db1a67c
Timezones are tricky, so a review will be welcome, but as a general thing:
1)RFC requires time be passed in GMT, so we do that.
2)Set local expiry time.

This makes tests pass, though I am not really sure how it should behave.

from cro-http.

Altai-man avatar Altai-man commented on August 23, 2024

ping @Xliff
Can this issue be closed now?

from cro-http.

Xliff avatar Xliff commented on August 23, 2024

Ack! Let me check on my end! :)

from cro-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.