Skip to content

Commit

Permalink
Use wp_date instead
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Sep 4, 2024
1 parent fd6ab28 commit 5052a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/api/class-bc-admin-media-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function bc_ajax_update_video_or_playlist() {
$history = isset( $_POST['history'] ) ? json_decode( wp_unslash( $_POST['history'] ), true ) : [];

$user = wp_get_current_user();
$history = array_merge( array( sprintf( '%s - %s', $user->user_login, gmdate( 'Y-m-d H:i:s', time() ) ) ), $history );
$history = array_merge( array( sprintf( '%s - %s', $user->user_login, wp_date( 'Y-m-d H:i:s' ) ) ), $history );

$history = array_filter( $history );
$custom['_change_history'] = wp_json_encode( $history );
Expand Down

0 comments on commit 5052a29

Please sign in to comment.