Commit 304435d5 authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix `created` timestamps

parent b5830f59
...@@ -326,7 +326,7 @@ class Events_Store extends Singleton { ...@@ -326,7 +326,7 @@ class Events_Store extends Singleton {
if ( is_int( $update_id ) && $update_id > 0 ) { if ( is_int( $update_id ) && $update_id > 0 ) {
$wpdb->update( $this->get_table_name(), $job_post, array( 'ID' => $update_id, ) ); $wpdb->update( $this->get_table_name(), $job_post, array( 'ID' => $update_id, ) );
} else { } else {
$job_post['created'] = date( 'Y-m-d H:i:s', $timestamp ); $job_post['created'] = current_time( 'mysql', true );
$wpdb->insert( $this->get_table_name(), $job_post ); $wpdb->insert( $this->get_table_name(), $job_post );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment