Author Topic: Bulk change timezone is possible?  (Read 3390 times)

Offline baitasite

  • Newbie
  • *
  • Posts: 2
Bulk change timezone is possible?
« 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?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: Bulk change timezone is possible?
« Reply #1 on: December 03, 2022, 05:20:18 AM »
may be the moduserprefs.sh script in the bin folder can help?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline baitasite

  • Newbie
  • *
  • Posts: 2
Re: Bulk change timezone is possible?
« Reply #2 on: December 05, 2022, 05:22:49 PM »
Thanks for reply! But, how to set this config? I'm a layman

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: Bulk change timezone is possible?
« Reply #3 on: December 08, 2022, 12:54:50 PM »
Code: [Select]
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:

Code: [Select]
./moduserprefs.sh timezone America/New_York

where "America/New_York" is the PHP timezone name for whatever timezone you want to set.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…