Incorrect date and time in the relationship with a person in the target lists #10566
Labels
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
When deleting a Target List that has related records, the value of the date_modified field of the prospect_lists_prospects table is modified, however the DB stores the local date, and not the UTC date and time as it should.
This happens because the field update is being done directly with SQL using the
NOW()
function.Possible Fix
Use the value of
UTC_TIMESTAMP()
from php instead of theNOW()
function in:SuiteCRM/modules/ProspectLists/ProspectList.php
Line 430 in 5f8062c
Steps to Reproduce the Issue
Context
No response
Version
7.14.4
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
PHP 7.4
Operating System and Version
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: