mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Project Tasks, the date is altered to 1 day in each edition #4817
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4817
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kunanSA on GitHub (Jul 22, 2022).
Issue
When creating a task from the Gantt view in the Project, the start date changes to 1 day before. The same happens if the task is edited, the date is altered again to 1 day ago.
Expected Behavior
Do not delay 1 day behind, the date established in the "Start date" field
Steps to Reproduce
6 . When saving the modified record again, the start date is changed back to 1 day before.
Context
This bug affects all project task records created from a new or existing project. This problem does not occur if the project tasks are created or edited from their corresponding module.
As this problem exists in Suitecrm 7.10.7, it was verified that the following versions continue the problem until 7.10.36. Then all skipped versions of 7.11.x were verified and it was verified that until the latest version 7.12.6 the problem continues to exist.
It is believed that this same behavior is also related to the REPORTS module.
Your Environment
@johnM2401 commented on GitHub (Jul 26, 2022):
Hey there,
Sorry, I can't seem to replicate this at the moment
Perhaps I have misunderstood some of your steps?
When creating Tasks, the date seems to be correct on both sides of the graph:

Even if I modify the tasks, they seem to stay at the correct start date:

Do you know if anything further is needed, to replicate?
Do you perhaps have any further information that might clarify this issue?
(ie: Screenshots, Which PHP versions you have tried this on)
Additionally, which timezone do you have set for your CRM / User?
Occasionally, the CRM can have some issues with Timezones / Date fields, so it would be good to rule this out.
Thanks!
@imoldovavan commented on GitHub (Sep 14, 2023):
I am having the same issue for two installs on Suitecrm.

The start date from the ghant chart is correct, the one from the list view is retarded by one day. Any sugestions???
Version 7.13.4
Sugar Version 6.5.25 (Build 344)
@pgorod commented on GitHub (Sep 15, 2023):
This could be just a PHP timezone issue. If you "pull" a date of by an hour or two, and it crosses midnight, it will appear in a different day.
@imoldovavan commented on GitHub (Sep 15, 2023):
When this happens, the date jumps back one day in the list view. Been playing with setting the php timezone to UTC without any effect.
@imoldovavan commented on GitHub (Sep 15, 2023):
Looking at the database with phpmyadmin the date is saved correctly. It is displayed wrong in the list view. I will dig some more :)
@pgorod commented on GitHub (Sep 15, 2023):
Remember to restart web server after any php.ini changes.
And check with a phpinfo page what are your effective values.
@imoldovavan commented on GitHub (Sep 15, 2023):
I did that.
Changing the line in Project/project_table.php from
.$timeDate->to_display_date($task->date_start, true).;to
.$timeDate->to_display_date($task->date_start, false).;fixed my problem. It is hacky but it works. :)
I would like to know why this happens, so I will do more digging.