Changeset 45424 for trunk/src/wp-admin/includes/export.php
- Timestamp:
- 05/26/2019 12:11:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r45216 r45424 80 80 $sitename .= '.'; 81 81 } 82 $date = date( 'Y-m-d' );82 $date = gmdate( 'Y-m-d' ); 83 83 $wp_filename = $sitename . 'WordPress.' . $date . '.xml'; 84 84 /** … … 130 130 131 131 if ( $args['start_date'] ) { 132 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", date( 'Y-m-d', strtotime( $args['start_date'] ) ) );132 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", gmdate( 'Y-m-d', strtotime( $args['start_date'] ) ) ); 133 133 } 134 134 135 135 if ( $args['end_date'] ) { 136 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", date( 'Y-m-d', strtotime( '+1 month', strtotime( $args['end_date'] ) ) ) );136 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", gmdate( 'Y-m-d', strtotime( '+1 month', strtotime( $args['end_date'] ) ) ) ); 137 137 } 138 138 } … … 459 459 <link><?php bloginfo_rss( 'url' ); ?></link> 460 460 <description><?php bloginfo_rss( 'description' ); ?></description> 461 <pubDate><?php echo date( 'D, d M Y H:i:s +0000' ); ?></pubDate>461 <pubDate><?php echo gmdate( 'D, d M Y H:i:s +0000' ); ?></pubDate> 462 462 <language><?php bloginfo_rss( 'language' ); ?></language> 463 463 <wp:wxr_version><?php echo WXR_VERSION; ?></wp:wxr_version>
Note: See TracChangeset
for help on using the changeset viewer.