From c17f0f3997bda8d774073b06bdd8f2456cd76e9b Mon Sep 17 00:00:00 2001 From: Kay Kasemir Date: Tue, 14 Mar 2023 15:59:49 -0400 Subject: [PATCH] Revert "Display Builder: last save timestamp and user in BOB file comment" --- .../csstudio/display/builder/model/persist/ModelWriter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/display/model/src/main/java/org/csstudio/display/builder/model/persist/ModelWriter.java b/app/display/model/src/main/java/org/csstudio/display/builder/model/persist/ModelWriter.java index da615bfa43..d87710ebe4 100644 --- a/app/display/model/src/main/java/org/csstudio/display/builder/model/persist/ModelWriter.java +++ b/app/display/model/src/main/java/org/csstudio/display/builder/model/persist/ModelWriter.java @@ -83,7 +83,8 @@ public ModelWriter(final OutputStream stream) throws Exception writer = new IndentingXMLStreamWriter(base); writer.writeStartDocument(XMLUtil.ENCODING, "1.0"); - writer.writeComment("Saved on " + TimestampFormats.SECONDS_FORMAT.format(Instant.now()) + " by " + System.getProperty("user.name")); + if (with_comments) + writer.writeComment("Created " + TimestampFormats.DATETIME_FORMAT.format(Instant.now())); writer.writeStartElement(XMLTags.DISPLAY); writer.writeAttribute(XMLTags.VERSION, DisplayModel.VERSION.toString()); }