Configuring timezone settings by using the command line

You can configure the timezone settings by using the command interface.

About this task

To configure timezone settings from the command line, you enter timezone mode and enter the required timezone commands.

Procedure

  1. Connect to the IBM® MQ Appliance as described in Command line access. Log in as an administrative user.
  2. Type config to enter global configuration mode.
  3. Type the following command to configure timezone settings:
    timezone
    
  4. Use the following timezone commands to configure the settings:
    Command Description
    admin-state Sets the administrative state for the configuration.
    custom Specifies the name of a custom time zone.
    daylight-name Specifies the name of the time zone when in Daylight Saving Time. This name is appended to the time.
    daylight-offset Sets the offset, in hours, for Daylight Saving Time.
    daylight-start-day Specifies the day of the week when Daylight Saving Time starts.
    daylight-start-hours Specifies the hour in the day when Daylight Saving Time starts.
    daylight-start-minutes Specifies the minute in the hour when Daylight Saving Time starts.
    daylight-start-month Specifies the month of the year when Daylight Saving Time starts.
    daylight-start-week Specifies the instance of the day in the month when Daylight Saving Time starts.
    daylight-stop-day Specifies the day of the week when Daylight Saving Time stops.
    daylight-stop-hours Specifies the hour in the day when Daylight Saving Time ends.
    daylight-stop-minutes Specifies the minute in the hour when Daylight Saving Time ends.
    daylight-stop-month Specifies the month of the year when Daylight Saving Time ends.
    daylight-stop-week Specifies the instance of the day in the month when Daylight Saving Time ends.
    direction Specifies the direction, relative to Coordinated Universal Time, of the time zone.
    name Sets the name of the time zone. This name is appended to the time.
    offset-hours Specifies the offset in hours, relative to Coordinated Universal Time, of the time zone.
    offset-minutes Specifies the offset in minutes, relative to Coordinated Universal Time, of the time zone.
  5. After you configure the timezone settings, enter exit. The setting of the value of the timezone becomes effective in the appliance when you issue the exit command. If you do not want to make the setting effective, type cancel instead.
  6. Restart the appliance to ensure that the new timezone is used by all IBM MQ processes.