Users save() method always sets the 'timezone' to 'UTC' #5232

Open
opened 2026-02-20 16:31:47 -05:00 by deekerman · 1 comment
Owner

Originally created by @ps-amaureder on GitHub (Aug 6, 2024).

Issue

The fix: 'Fix #10184 - Timezone not set on silent install' introduced a bug.
Now the Users 'timezone is always set to 'UTC' if the Users save() method is called.

Possible Fix

No response

Steps to Reproduce the Issue

1. fetch User: '$user = BeanFactory::getBean('Users', $id, [], true);'
2. change the timezone: '$user->setPreference('timezone', 'Europe/Vienna', 0, 'global');'
3. save it: '$user->save();'
...

The timezone will be set to 'UTC' because of this change https://github.com/salesagility/SuiteCRM/pull/10185/files

Context

No response

Version

8.5.1

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

PHP 8, mariadb 10.6

Operating System and Version

Ubuntu 22.04

Originally created by @ps-amaureder on GitHub (Aug 6, 2024). ### Issue The fix: 'Fix #10184 - Timezone not set on silent install' introduced a bug. Now the Users 'timezone is always set to 'UTC' if the Users save() method is called. ### Possible Fix _No response_ ### Steps to Reproduce the Issue ```bash 1. fetch User: '$user = BeanFactory::getBean('Users', $id, [], true);' 2. change the timezone: '$user->setPreference('timezone', 'Europe/Vienna', 0, 'global');' 3. save it: '$user->save();' ... The timezone will be set to 'UTC' because of this change https://github.com/salesagility/SuiteCRM/pull/10185/files ``` ### Context _No response_ ### Version 8.5.1 ### What browser are you currently using? Chrome ### Browser Version _No response_ ### Environment Information PHP 8, mariadb 10.6 ### Operating System and Version Ubuntu 22.04
Author
Owner

@SuiteBot commented on GitHub (Mar 14, 2025):

This issue has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/timezone-version-8-0/83895/21

@SuiteBot commented on GitHub (Mar 14, 2025): This issue has been mentioned on **SuiteCRM**. There might be relevant details there: https://community.suitecrm.com/t/timezone-version-8-0/83895/21
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5232
No description provided.