azureredmine

Configure the default timezone

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

  • Navigate to the Redmine installation directory. Depending on your installation type, execute the following commands:

    • Approach A (Bitnami installations using system packages):

        $ cd /opt/bitnami/redmine
      
    • Approach B (Self-contained Bitnami installations):

        $ cd /opt/bitnami/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 /opt/bitnami/ctlscript.sh restart apache
    
Last modification August 31, 2021