WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41782, comment 1


Ignore:
Timestamp:
09/02/2017 07:04:23 PM (23 months ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41782, comment 1

    initial v1  
    55}}}
    66
    7 It's interesting to see that {{{$datetime}}} in {{{WP_Date_Query::build_mysql_datetime()}}}
     7It's interesting to see that {{{$datetime}}} string in {{{WP_Date_Query::build_mysql_datetime()}}}
    88
    99https://github.com/WordPress/WordPress/blob/bbb8d48086b7d10908f4fda673585ee122f2851d/wp-includes/date.php#L856
    1010
    11 is matched for 'Y', 'Y-m', 'Y-m-d', 'Y-m-d H:i' but not 'Y-m-d H:i:s'.
     11is matched for 'Y', 'Y-m', 'Y-m-d', 'Y-m-d H:i' but not 'Y-m-d H:i:s' before passed on to the {{{gmdate( 'Y-m-d H:i:s', strtotime( $datetime, $now ) )}}} part for non-matches.