Skip to content

Incorrect TimeZone and format on custom entryPoints #10666

Open
@kale1d0code

Description

@kale1d0code

Issue

datetime fields use the incorrect format and timezone on custom entryPoints
eg

if the system timezone is UTC
and the user timezone is GMT (Europe/London)
and the field value displays within the CRM as: 16/04/2025 09:00am

$someBean->someDateTimeField

This will return: 04/16/2025 08:00

Possible Fix

I am still trying to understand the difference between how the system handles date/time/datetime fields from an entrypoint over standard views (List, Edit, Detail)

Steps to Reproduce the Issue

1. Set user timezone to Europe/London
2. Set user date format to day / month / year
3. create a custom entrypoint which will return a date field value
4. observe the value is incorrect

Context

Display a datetime in a custom entrypoint

Version

7.14.2 (will test current version soon)

What browser are you currently using?

Chrome

Browser Version

Version 134.0.6998.35 (Official Build) (64-bit)

Environment Information

PHP 8.1.27, MariaDB 10.9.4

Operating System and Version

Debian GNU/Linux 11 (bullseye)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugBugs within the core SuiteCRM codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions