Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
304435d5
Commit
304435d5
authored
Feb 17, 2017
by
Erick Hitter
Browse files
Fix `created` timestamps
parent
b5830f59
Changes
1
Show whitespace changes
Inline
Side-by-side
includes/class-events-store.php
View file @
304435d5
...
...
@@ -326,7 +326,7 @@ class Events_Store extends Singleton {
if
(
is_int
(
$update_id
)
&&
$update_id
>
0
)
{
$wpdb
->
update
(
$this
->
get_table_name
(),
$job_post
,
array
(
'ID'
=>
$update_id
,
)
);
}
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment