Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10566 - Incorrect date and time in the relationship with a person in the target lists #10567

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/ProspectLists/ProspectList.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public function save($check_notify = false)

public function mark_deleted($id)
{
$query = "UPDATE prospect_lists_prospects SET deleted = 1, date_modified = NOW() WHERE prospect_list_id = '{$id}' AND deleted = 0";
$query = "UPDATE prospect_lists_prospects SET deleted = 1, date_modified = UTC_TIMESTAMP() WHERE prospect_list_id = '{$id}' AND deleted = 0";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe this will work with MS SQL, so you will likely need to use the DB convert function here to support both engines and equally update that to use UTC_TIMESTAMP in MySQL , so this fix is applied globally when used

$this->db->query($query);
return parent::mark_deleted($id);
}
Expand Down