找到了这个。修改了一点,以在几个小时内抵消,它有点工作,但不完全是。。。如果快到午夜了,时间会变得很奇怪。
起初的here
function cc_time_machine( $formatted, $format ) {
    $offset = -3; // Offset in hours, can be negative.
    if ( $offset ) {
        global $post;
        $timestamp = get_post_time( \'U\', true, $post ); // UTC timestamp with GMT offset included.
        $adjusted = $timestamp + ( (int) $offset * HOUR_IN_SECONDS );
        return date( $format, $adjusted );
    }
    // If option doesn\'t exist, then just return it unmodified.
    return $formatted;
}
add_filter( \'get_the_time\', \'cc_time_machine\', 10, 2 );