mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Docs: Promote many bool types to true or false where only that value is used.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3585,7 +3585,7 @@ function iso8601_timezone_to_offset( $timezone ) {
|
||||
*
|
||||
* @param string $date_string Date and time in ISO 8601 format {@link https://en.wikipedia.org/wiki/ISO_8601}.
|
||||
* @param string $timezone Optional. If set to 'gmt' returns the result in UTC. Default 'user'.
|
||||
* @return string|bool The date and time in MySQL DateTime format - Y-m-d H:i:s, or false on failure.
|
||||
* @return string|false The date and time in MySQL DateTime format - Y-m-d H:i:s, or false on failure.
|
||||
*/
|
||||
function iso8601_to_datetime( $date_string, $timezone = 'user' ) {
|
||||
$timezone = strtolower( $timezone );
|
||||
|
||||
Reference in New Issue
Block a user