vcl/source/control/fmtfield.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit fa9428e82004389496f9ce18dadc8f3852b4bfce
Author: Gökay Şatır <[email protected]>
AuthorDate: Thu Aug 22 11:19:08 2024 +0300
Commit: Szymon Kłos <[email protected]>
CommitDate: Thu Aug 22 12:10:23 2024 +0200
Add one more property to JSON object to distinguish time fields better.
Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: I885284f280e89f675df15c4cfb02149962d089aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172239
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Szymon Kłos <[email protected]>
diff --git a/vcl/source/control/fmtfield.cxx b/vcl/source/control/fmtfield.cxx
index e8b02a29c111..fc6d70f39f2a 100644
--- a/vcl/source/control/fmtfield.cxx
+++ b/vcl/source/control/fmtfield.cxx
@@ -1359,6 +1359,7 @@ void
FormattedField::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
{
// weld::TimeFormatter uses h24 format
rJsonWriter.put("type", "time");
+ rJsonWriter.put("hasTimeFormatter", true);
}
rJsonWriter.put("min", rFormatter.GetMinValue());
rJsonWriter.put("max", rFormatter.GetMaxValue());