Setting the time zone of the OpenPages containers

Use a resource specification injection (RSI) webhook to inject an environment variable that sets the time zone of the OpenPages application container.

Procedure

  1. Create a file named openpages_tz_env.json to declare an environment variable named TZ that has a value of the time zone name in the format Area/Location.
    For example, the following snippet declares the TZ variable with the time zone for Sydney, Australia.
    [
      {
        "name": "TZ",
        "value": "Australia/Sydney"
      }
    ]
  2. Save the openpages_tz_env.json file in the cpd-cli-workspace path at cpd-cli-workspace/olm-utils-workspace/work/rsi.
  3. Run the following command:
    cpd-cli manage create-rsi-patch \
     --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
     --patch_name="openpages-tz" --description="Add TZ env to OpenPages container" \
     --patch_type=rsi_pod_env_var --patch_spec=/tmp/work/rsi/openpages_tz_env.json \
     --spec_format=set-env --include_labels=icpdsupport/addOnId:openpages \
     --selector=icpdsupport/addOnId:openpages --skip_apply=false --state=active
  4. Verify that the OpenPages pods are restarting.
  5. Set the same time zone for the database. For more information, see Setting up a time zone for new or existing Db2 deployments.
  6. If you use Cognos Analytics, set the same time zone for Cognos Analytics. For more information, see Changing the time zone of the Cognos Analytics service instance.