Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ps-amaureder opened this issue Aug 6, 2024 · 0 comments
Open

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

ps-amaureder opened this issue Aug 6, 2024 · 0 comments
Labels
Area:Users Issues & PRs related to all things regarding to Users Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Major Significant impact/severe disruption Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate Type: Bug Bugs within the core SuiteCRM codebase

Comments

@ps-amaureder
Copy link

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

@ps-amaureder ps-amaureder added the Type: Bug Bugs within the core SuiteCRM codebase label Aug 6, 2024
@johnM2401 johnM2401 added Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area:Users Issues & PRs related to all things regarding to Users Severity: Major Significant impact/severe disruption labels Aug 9, 2024
@gemartin21 gemartin21 added the Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate label Oct 7, 2024
serhiisamko091184 added a commit to serhiisamko091184/SuiteCRM that referenced this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Users Issues & PRs related to all things regarding to Users Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Major Significant impact/severe disruption Status: Team Investigating Labels for issues in which the Core Team are investigating / Intend to Investigate Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

3 participants