From 558994bed534a4c979f6df8c2fba7d8c96c7d073 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 8 Jan 2009 16:09:46 +0000 Subject: =?UTF-8?q?Bug=20452519:=20Fix=20timezones=20in=20emails=20-=20Pat?= =?UTF-8?q?ch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r=3Dwicked=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- token.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'token.cgi') diff --git a/token.cgi b/token.cgi index 34a017376..535380042 100755 --- a/token.cgi +++ b/token.cgi @@ -37,6 +37,7 @@ use Bugzilla::Error; use Bugzilla::Token; use Bugzilla::User; +use Date::Format; use Date::Parse; my $dbh = Bugzilla->dbh; @@ -351,7 +352,7 @@ sub request_create_account { my (undef, $date, $login_name) = Bugzilla::Token::GetTokenData($token); $vars->{'token'} = $token; $vars->{'email'} = $login_name . Bugzilla->params->{'emailsuffix'}; - $vars->{'date'} = str2time($date); + $vars->{'expiration_ts'} = ctime(str2time($date) + MAX_TOKEN_AGE * 86400); # When 'ssl' equals 'always' or 'authenticated sessions', # we want this form to always be over SSL. -- cgit v1.2.1