Skip to content

Commit 8136655

Browse files
committed
Update class-rest-controller.php
1 parent d3d4d3a commit 8136655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/rest/class-rest-controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,8 @@ private function prepare_post_for_response( $post, $include_content = false ) {
701701
'permalink' => get_permalink( $post ),
702702
'products' => $this->format_terms( get_the_terms( $post, 'wzkb_product' ) ),
703703
'sections' => $this->format_terms( get_the_terms( $post, 'wzkb_category' ) ),
704-
'date' => mysql_to_rfc3339( $post->post_date_gmt ),
705-
'modified' => mysql_to_rfc3339( $post->post_modified_gmt ),
704+
'date' => mysql2date( DATE_RFC3339, $post->post_date_gmt, false ),
705+
'modified' => mysql2date( DATE_RFC3339, $post->post_modified_gmt, false ),
706706
);
707707

708708
if ( $include_content ) {

0 commit comments

Comments
 (0)