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

Time zone can't be saved in My Profile #1601

Closed
Antoniano opened this issue Dec 19, 2016 · 2 comments
Closed

Time zone can't be saved in My Profile #1601

Antoniano opened this issue Dec 19, 2016 · 2 comments
Labels
Milestone

Comments

@Antoniano
Copy link

Antoniano commented Dec 19, 2016

Steps to reproduce

  1. Go to My Profile and Change Time Zone (Europe/Kiev).
  2. Click green "checkbox" button - it save the timezone.
  3. Log out and Log in again - Time zone isn't set anymore.

P.S. time zone wasn't defined on Settings tab in admin console.

Expected behaviour

Time zone in My Profile must be saved.

Actual behaviour

Upon next log in time zone is not set again.

Server configuration

Operating system: Ubuntu 14.04

Web server: Apache2

Database: MySQL

PHP version: 5.5.9

Teampass version: 2.1.26

Updated from an older Teampass or fresh install: fresh install

Client configuration

Browser: Mozilla

Operating system: Windows 10

Logs

Web server error log

Insert your webserver log here

Firebug log (How to?)

Insert the Firebug log here
@nilsteampassnet
Copy link
Owner

Corrected in 2.1.27

You can do the next manual change.

  • open file sources/identify.php
  • find and replace
            // get personal settings
            if (!isset($data['treeloadstrategy']) || empty($data['treeloadstrategy'])) $data['treeloadstrategy'] = "full";

by

            // get personal settings
            if (!isset($data['treeloadstrategy']) || empty($data['treeloadstrategy'])) $data['treeloadstrategy'] = "full";
            $_SESSION['user_settings']['usertimezone'] = $data['usertimezone'];

@nilsteampassnet nilsteampassnet added this to the 2.1.27 milestone Dec 24, 2016
nilsteampassnet added a commit that referenced this issue Dec 24, 2016
Fix for #1601, #1603
@nilsteampassnet
Copy link
Owner

Corrected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants