Skip to main content
Skip table of contents

Configure Timezone and Date Display - Job Queue Manager

Timezone

By default, the Job Queue Manager times shown in SuperWEB2 (such as the time a job was submitted and the job expiry time) are in UTC/GMT:

To change the timezone to your local timezone:

  1. Go to the Tomcat instance that is running SuperWEB2 and open <tomcat_home>\webapps\webapi\tableView\openTable.xhtml in a text editor.

    Make a backup copy of this file before making any changes.

  2. Locate the following section:

    XML
    <h:outputText value="#{job.creation}">
        <f:convertDateTime pattern="#{labels['tableView.downloadTable.recordList.dateFormat']}"/>
    </h:outputText>
  3. Add the timeZone parameter to the <f:convertDateTime> tag, and set it to your chosen timezone. For example Australia/ACTEurope/Amsterdam or US/Eastern (see this page for a full list of supported timezone values).

    The following example configures the times to display in the Australian ACT timezone:

    XML
    <h:outputText value="#{job.creation}">
        <f:convertDateTime timeZone="Australia/ACT" pattern="#{labels['tableView.downloadTable.recordList.dateFormat']}"/>
    </h:outputText>
  4. Locate the following section:

    XML
    <h:outputText value="#{job.expiry}">
        <f:convertDateTime pattern="#{labels['tableView.downloadTable.recordList.dateFormat']}"/>
    </h:outputText>
  5. Add the timeZone parameter to the <f:convertDateTime> tag:

    XML
    <h:outputText value="#{job.expiry}">
        <f:convertDateTime timeZone="Australia/ACT" pattern="#{labels['tableView.downloadTable.recordList.dateFormat']}"/>
    </h:outputText>
  6. Save your changes to openTable.xhtml. You may need to restart the SuperWEB2 Tomcat service to see your changes in the client.

Date Display

By default, the dates are displayed in the format dd/mm/yyyy @ HH:MM (e.g. 27/08/2013 @ 1:38 PM).

You can change this if you want to use a different date format by editing the common_labels_XX.properties files, located in <tomcat_home>\webapps\webapi\WEB-INF\classes

There may be multiple versions of this file for different languages and locales. You need to repeat these steps in all versions of this file. The properties file that is used will depend on the language settings in the end user's web browser and the set of supported locales defined in the faces-config.xml configuration file (see Multilingual and Localisation Support - SuperWEB2 for more information about localisation and how SuperWEB2 uses the properties files).

  1. Open the common_labels_XX.properties file in a text editor.

    Make a backup copy of this file before making any changes.

  2. Locate the following line:

    XML
    tableView.downloadTable.recordList.dateFormat=dd/MM/yyyy '@' h:mm a
  3. Change the value to the pattern of your preferred date format. See the Java documentation for more more details about the acceptable date formats.

    For example:

    XML
    tableView.downloadTable.recordList.dateFormat=HH:mm E d MMM yyyy
  4. Save your changes.

Once you have completed the change for all locales, restart the SuperWEB2 Tomcat service to see the changes in the client.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.