Description: postpone expiry dates in test suites to 2041
Author: David Golden
Origin: upstream, https://github.com/dagolden/HTTP-CookieJar/commit/7a3b9b163526784bf18a69172df736d190c15940
Bug: https://github.com/dagolden/HTTP-CookieJar/issues/11
Bug-Debian: https://bugs.debian.org/991649
Applied-Upstream: 0.011
Reviewed-by: Étienne Mollier <emollier@debian.org>
Last-Update: 2021-07-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- libhttp-cookiejar-perl.orig/t/examples.t
+++ libhttp-cookiejar-perl/t/examples.t
@@ -38,7 +38,7 @@
 
 subtest "expiration" => sub {
     $jar->clear;
-    $jar->add( $req, "lang=en-US; Expires=Wed, 09 Jun 2021 10:18:14 GMT" );
+    $jar->add( $req, "lang=en-US; Expires=Sun, 09 Jun 2041 10:18:14 GMT" );
     is( $jar->cookie_header($req), "lang=en-US" );
     $jar->add( $req, "lang=; Expires=Sun, 06 Nov 1994 08:49:37 GMT" );
     is( $jar->cookie_header($req), "" );
--- libhttp-cookiejar-perl.orig/t/parse.t
+++ libhttp-cookiejar-perl/t/parse.t
@@ -83,19 +83,19 @@
         }
     },
     {
-        cookie => "lang=en-US; Expires = Wed, 09 Jun 2021 10:18:14 GMT",
+        cookie => "lang=en-US; Expires = Sun, 09 Jun 2041 10:18:14 GMT",
         parse  => {
             name    => "lang",
             value   => "en-US",
-            expires => 1623233894,
+            expires => 2254385894,
         }
     },
     {
-        cookie => "lang=en-US; Expires = Wed, 09 Jun 2021 10:18:14 GMT; Max-Age=3600",
+        cookie => "lang=en-US; Expires = Sun, 09 Jun 2041 10:18:14 GMT; Max-Age=3600",
         parse  => {
             name      => "lang",
             value     => "en-US",
-            expires   => 1623233894,
+            expires   => 2254385894,
             'max-age' => 3600,
         }
     },
