diff options
author | lpsolit%gmail.com <> | 2009-01-08 17:09:46 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-01-08 17:09:46 +0100 |
commit | 558994bed534a4c979f6df8c2fba7d8c96c7d073 (patch) | |
tree | 697d20d0224be06cc68d2af93884a0aa49361707 /token.cgi | |
parent | 11fa9ce3596363a4d4badd7960ae73e8dc535050 (diff) | |
download | bugzilla-558994bed534a4c979f6df8c2fba7d8c96c7d073.tar.gz bugzilla-558994bed534a4c979f6df8c2fba7d8c96c7d073.tar.xz |
Bug 452519: Fix timezones in emails - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
Diffstat (limited to 'token.cgi')
-rwxr-xr-x | token.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |