Add missing GMT flag

This commit is contained in:
Tetrakern 2024-08-06 09:55:22 +02:00
parent 95f4342263
commit 48c267905b

View File

@ -135,7 +135,7 @@ function fictioneer_store_original_publish_date( $post_id, $post ) {
// Set if missing
if ( empty( $first_publish_date ) || strtotime( $first_publish_date ) === false ) {
update_post_meta( $post_id, 'fictioneer_first_publish_date', current_time( 'mysql' ) );
update_post_meta( $post_id, 'fictioneer_first_publish_date', current_time( 'mysql', true ) );
}
}
add_action( 'save_post', 'fictioneer_store_original_publish_date', 10, 2 );