Forum Replies Created

Viewing 1 replies (of 1 total)
  • wonder why it defaults to today’s date, not 01/01/1970? Is there a line which checks for an invalid or missing datestamp and helpfully inserts ‘today’ if it finds one?

    date_i18n (called mysql2date () in wp-includes/functions.php)?

    / Sanity check for PHP 5.1.0-
    if ( false === $i || intval($i) < 0 ) {
    if ( ! $gmt )
    $i = current_time( ‘timestamp’ );
    else
    $i = time();
    // we should not let date() interfere with our
    // specially computed timestamp
    $gmt = true;
    }

Viewing 1 replies (of 1 total)