Configuring the timestamp format for the message printing service
By default, the message printing service prints timestamps in the header of printed messages in Coordinated Universal Time (UTC) in the format "YYYYMMDD hhmmss".
To configure a different timestamp format, set the Java system property
com.ibm.dnq.formattedview.timestamp.format in the broker configuration data as
described in Setting a Java system property in the broker configuration where one of the
following values can be set:
- off
- This value causes the timestamps in the header of a message to be printed as UTC timestamp in the format "YYYY-MM-DD hh:mm:ss".
- on
- This value causes the timestamps in the header of a message to be printed as UTC timestamp
according to the locale in which the broker runs. For example, the UTC timestamp 20230131234501 is
printed as follows if the broker runs with locale
en_US:
UTC Timestamp: 1/31/2023 11:45:01 PM - local
- This value causes the timestamps in the header of a message to be printed as follows:
- The timestamp corresponds to the time zone in which the broker runs, and this time zone is printed in addition to the timestamp itself.
- The timestamp is formatted according to the locale in which the broker runs.
Timestamp: 1/31/2023 3:45:01 PM (PST) - format;offset
- Use the offset format to define the representation and possible adjustment of the timestamps in
the header of a message to be printed.
- format
- The format to be used for printing of timestamps, for example,
yyyyMMdd HHmmss. The format is to be set according to the patterns defined for Java DateTimeFormatter and can, for example, also include delimiters. - offset
- The offset (+ or -) in hours to be applied to the UTC timestamp. For example, the value +08:00 adds 8 hours on top of the UTC timestamp.
Timestamp: 20221206 04:40:29
If you want to return to the default timestamp format, delete the Java system property
com.ibm.dnq.formattedview.timestamp.format from the FTM SWIFT broker profile or all execution group
specific profiles dniczbrk.sh by repeating the procedure described in
Setting a Java system property in the broker configuration but deleting the line you added
in step 2.b.