Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5968828
TimezoneFilter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
387 B
Referenced Files
None
Subscribers
None
TimezoneFilter.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\Preferences
;
use
MediaWiki\User\UserTimeCorrection
;
class
TimezoneFilter
implements
Filter
{
/**
* @inheritDoc
*/
public
function
filterForForm
(
$value
)
{
return
$value
;
}
/**
* @inheritDoc
*/
public
function
filterFromForm
(
$tz
)
{
return
(
new
UserTimeCorrection
(
$tz
)
)->
toString
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 13:19 (1 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
73/a5/e29d94edad2faedde1c57ce93e9f
Default Alt Text
TimezoneFilter.php (387 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment