Changeset 3633

Show
Ignore:
Timestamp:
03/07/06 21:24:49 (3 years ago)
Author:
ryan
Message:

Don't add UTC offset again when formatting 'U' in mysql2date. Props masquerade. fixes #2537

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r3610 r3633  
    2424    $i = mktime(substr($m,11,2),substr($m,14,2),substr($m,17,2),substr($m,5,2),substr($m,8,2),substr($m,0,4)); 
    2525 
     26    if( 'U' == $dateformatstring ) 
     27        return $i; 
     28     
    2629    if ( -1 == $i || false == $i ) 
    2730        $i = 0;