sc/source/core/data/postit.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5f6eca3d3f0cab799d7454f96b78d9d526d97916 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Mon Feb 24 20:45:01 2025 +0530 Commit: Pranam Lashkari <lpra...@collabora.com> CommitDate: Tue Feb 25 00:39:02 2025 +0100 sc comment: use standerd ISO date format for comment problem: in online when comments are stored in one language (i.e: en-us) and opened in another language(i.e: de) it caused months and day to be swapped which caused incorrect date stamp for comment Change-Id: Ibaf3a5cc30389f261c14381356dbc8bdcf794639 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182093 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182119 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <lpra...@collabora.com> (cherry picked from commit f6944d251f6eb4ad2bcf6cee6027a83e44d72364) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182135 Tested-by: Pranam Lashkari <lpra...@collabora.com> diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index b28b89fe613f..7034e6d2122f 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -23,6 +23,7 @@ #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> #include <unotools/useroptions.hxx> +#include <unotools/datetime.hxx> #include <svx/svdocapt.hxx> #include <svx/svdpage.hxx> #include <editeng/outlobj.hxx> @@ -494,8 +495,7 @@ void ScPostIt::AutoStamp(bool bCreate) if (bCreate) { DateTime aNow(DateTime::SYSTEM); - auto const & rLocaleData = ScGlobal::getLocaleData(); - maNoteData.maDate = rLocaleData.getDate(aNow) + " " + rLocaleData.getTime(aNow, false); + maNoteData.maDate = utl::toISO8601(aNow.GetUNODateTime()); } if (!maNoteData.maAuthor.isEmpty()) return;