summaryrefslogtreecommitdiff
path: root/lib/CGI/Cookie.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CGI/Cookie.pm')
-rw-r--r--lib/CGI/Cookie.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CGI/Cookie.pm b/lib/CGI/Cookie.pm
index 7060fb4827..27a93c55b0 100644
--- a/lib/CGI/Cookie.pm
+++ b/lib/CGI/Cookie.pm
@@ -220,7 +220,7 @@ sub expires {
sub max_age {
my $self = shift;
my $expires = shift;
- $self->{'max-age'} = CGI::Util::expire_calc($expires)-time if defined $expires;
+ $self->{'max-age'} = CGI::Util::expire_calc($expires)-time() if defined $expires;
return $self->{'max-age'};
}