mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Time offset 1 hour out when accessing datetimes with datetime set in GMT when in BST #5260
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#5260
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 @kale1d0code on GitHub (Oct 22, 2024).
Issue
The CRM system uses UTC to store and process datetimes.
The system offsets any times it stores with an end-user timezone mostly for viewing purposes but this would happen anytime a datetime is accessed for any reason.
This causes problems when sending automated emails.
The system uses UTC when it sends emails outside of a user context which causes every single datetime used in an email template to be incorrect if the email wasn't sent due to an end-user action.
When a user views a GMT datetime when the actual date is BST, the viewed datetime would also be incorrect.
This issue affects all SuiteCRM versions I have used 7.10 -> 7.14
Possible Fix
implement a system timezone to offset datetimes during automation (outside user context)
do not mix BST and GMT
Steps to Reproduce the Issue
Context
sending out meeting notifications to delegates and the delegates showing up an hour early.
Version
7.14.2
What browser are you currently using?
Chrome
Browser Version
Google Chrome Version 129.0.6668.89 (Official Build) (64-bit)
Environment Information
MariaDB 10.9.4 | PHP 7.4.25
Operating System and Version
Debian GNU/Linux 10 (buster)