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

Selection of Time Zone in user preferences does not stick [5.2] #1290

Closed
rileydog opened this issue Dec 18, 2015 · 6 comments · Fixed by #3625
Closed

Selection of Time Zone in user preferences does not stick [5.2] #1290

rileydog opened this issue Dec 18, 2015 · 6 comments · Fixed by #3625

Comments

@rileydog
Copy link

I am having trouble with the timezone setup.

  1. under personal preferences, when I select a timezone and press save, it reverts to "none selected.

This issue discussed here: https://community.plone.org/t/is-setting-the-time-zone-supposed-to-change-the-time-recorded-on-the-site/1303

I confirmed this bug with @cewing

@jdpye
Copy link

jdpye commented Jan 31, 2017

Bumping this because it looks orphaned and has no assignees. Bug still active in Plone 5.0.6. When will this be addressed?

@CrispySteak
Copy link

I can confirm that this bug is still in Plone 5.0.7. Doesn't look like any progress has been made.

@eric-jahn
Copy link

In 5.1.2 the settings stick in the settings page, but my content still shows UTC times. I set it to Los Angeles.

@ale-rt
Copy link
Member

ale-rt commented Aug 24, 2022

I am working on this.
The problem is that this adapter wants to set a property that is not in the memberdata properties and this fails silently:
https://github.com/plone/plone.app.users/blob/575fe2bb60201f795387f322dd5318b86efd62c0/plone/app/users/browser/account.py#L71-L78
This appears to be a valid fix:

ale@avo:~/Code/plone/projects/coredev/6.0/src/plone.app.users$ cat plone/app/users/profiles/default/memberdata_properties.xml
<?xml version="1.0"?>
<object name="portal_memberdata" meta_type="PlonePAS MemberData Tool">
 <property name="timezone" type="string"></property>
</object>

I will work on a patch.

@ale-rt
Copy link
Member

ale-rt commented Aug 25, 2022

A quick fix for this is to go to the portal_menberdata tool (e.g. https://demo.plone.org/portal_memberdata/manage_propertiesForm) and add the timezone property (see the form at the bottom of the page).
image

It can also be done with this Python code:
https://github.com/plone/plone.app.upgrade/blob/ac32e34b932c9729fe15490793636802884cfdf2/plone/app/upgrade/v60/betas.py#L7-L12

@ale-rt
Copy link
Member

ale-rt commented Aug 25, 2022

I am reopening it because on Plone 5.2. this is still an issue

@jensens jensens changed the title Selection of Time Zone in user preferences does not stick Selection of Time Zone in user preferences does not stick [5.2] Aug 25, 2022
ale-rt added a commit that referenced this issue Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment