From b51d90ee728a1fe3f0da37500b145cf289931eb4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 25 Dec 2015 20:40:43 +0000 Subject: [PATCH] Docs: Correct `@return` type for `rest_parse_date()`. Props TimothyBlynJacobs. Fixes #35224. git-svn-id: https://develop.svn.wordpress.org/trunk@36086 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php index c0a492482b..0b2da7f763 100644 --- a/src/wp-includes/rest-api.php +++ b/src/wp-includes/rest-api.php @@ -601,14 +601,14 @@ function rest_cookie_collect_status() { } /** - * Parses an RFC3339 timestamp into a DateTime. + * Parses an RFC3339 time into a Unix timestamp. * * @since 4.4.0 * * @param string $date RFC3339 timestamp. * @param bool $force_utc Optional. Whether to force UTC timezone instead of using * the timestamp's timezone. Default false. - * @return DateTime DateTime instance. + * @return int Unix timestamp. */ function rest_parse_date( $date, $force_utc = false ) { if ( $force_utc ) {