Use the correct timezone when setting the expiry timestamp in the email
confirmation.
Using Language::userDateAndTime to avoid indirect use of $wgUser, so it
is always the timezone used of the user the message gets send for.
Bug: T29158
Change-Id: Ieb74b72a4255d9d652f828d1879882dff4b45379
$this->getRequest()->getIP(),
$this->getName(),
$url,
- $wgLang->timeanddate( $expiration, false ),
+ $wgLang->userTimeAndDate( $expiration, $this ),
$invalidateURL,
- $wgLang->date( $expiration, false ),
- $wgLang->time( $expiration, false ) )->text() );
+ $wgLang->userDate( $expiration, $this ),
+ $wgLang->userTime( $expiration, $this ) )->text() );
}
/**