Configure the default timezone
Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.
NOTE: The Approach A sections referred to below do not apply to Bitnami native installers. Users of Bitnami native installers should refer only to the Approach B sections.
-
Navigate to the Redmine installation directory. Depending on your installation type, execute the following commands:
-
Approach A (Bitnami installations using system packages):
$ cd installdir/redmine
-
Approach B (Self-contained Bitnami installations):
$ cd installdir/apps/redmine/htdocs/
-
-
Check all the available timezones by executing these commands:
$ bundle exec rake time:zones:all
-
Once you decide on the correct one, edit the config/application.rb file and substitute the line
config.active_record.default_timezone = :local
with
config.active_record.default_timezone = 'your_timezone'
Note that the single quotes around the timezone value are necessary.
-
Restart services.
$ sudo installdir/ctlscript.sh restart apache