Make WordPress Core


Ignore:
Timestamp:
02/23/2008 10:11:47 PM (18 years ago)
Author:
westi
Message:

Fix the display of human time difference when server timezone if different from blog timezone. Fixes #5970 props jhodgdon.

File:
1 edited

Legend:

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

    r6984 r6995  
    66    if ( empty( $m ) )
    77        return false;
     8       
     9    if( 'G' == $dateformatstring ) {
     10        return gmmktime(
     11            (int) substr( $m, 11, 2 ), (int) substr( $m, 14, 2 ), (int) substr( $m, 17, 2 ),
     12            (int) substr( $m, 5, 2 ), (int) substr( $m, 8, 2 ), (int) substr( $m, 0, 4 )
     13        );
     14    }
     15   
    816    $i = mktime(
    917        (int) substr( $m, 11, 2 ), (int) substr( $m, 14, 2 ), (int) substr( $m, 17, 2 ),
Note: See TracChangeset for help on using the changeset viewer.