Make WordPress Core

Ticket #57467: 57467.date-time-formats.diff

File 57467.date-time-formats.diff, 510 bytes (added by sabernhardt, 14 months ago)

spells out "W3C date/time formats"

  • src/wp-includes/rss.php

     
    836836if ( !function_exists('parse_w3cdtf') ) :
    837837function parse_w3cdtf ( $date_str ) {
    838838
    839         # regex to match wc3dtf
     839        # regex to match W3C date/time formats
    840840        $pat = "/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(:(\d{2}))?(?:([-+])(\d{2}):?(\d{2})|(Z))?/";
    841841
    842842        if ( preg_match( $pat, $date_str, $match ) ) {