Roundcube Community Forum

Release Support => Release Discussion => Topic started by: baitasite on December 01, 2022, 01:51:58 AM

Title: Bulk change timezone is possible?
Post by: baitasite on December 01, 2022, 01:51:58 AM
All right, guys? Can you tell me if it's possible to setar the timeone of 100 email accounts at once, via some roundcube settings file?
Title: Re: Bulk change timezone is possible?
Post by: JohnDoh on December 03, 2022, 05:20:18 AM
may be the moduserprefs.sh script in the bin folder can help?
Title: Re: Bulk change timezone is possible?
Post by: baitasite on December 05, 2022, 05:22:49 PM
Thanks for reply! But, how to set this config? I'm a layman
Title: Re: Bulk change timezone is possible?
Post by: JohnDoh on December 08, 2022, 12:54:50 PM

Usage: moduserprefs.sh [options] pref-name [pref-value]
Options:
    --user=user-id User ID in local database
    --config=path  Location of additional configuration file
    --delete       Unset the given preference
    --type=type    Pref-value type: int, bool, string


Because you want to update all users you can omit the --user param so the command would be something like:


./moduserprefs.sh timezone America/New_York


where "America/New_York" is the PHP timezone name (https://php.net/manual/en/timezones.php) for whatever timezone you want to set.