Configuring the timestamp format
By default, browser-based printing provides the timestamp in the header of printouts in Coordinated Universal Time (UTC) in the format "YYYYMMDD hhmmss".
To configure a different timestamp format to be used, set the Java system property
com.ibm.dnq.formattedview.timestamp.format in the WebSphere Application Server as described in Setting a Java system property in the WebSphere Application Server 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 that the MER user has set in the browser. For example, the UTC timestamp
20230131234501 is printed as follows if the user has set locale en_US in the
browser:
UTC Time: 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 WebSphere Application Server runs, and this time zone is printed in addition to the timestamp itself.
- The timestamp is formatted according to the locale that the MER user has set in the browser.
Time : 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 can 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.