tools/source/datetime/tdate.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c9c84aea320ff3f513639cdf08e8a84bb88e608d
Author:     Mike Kaganski <[email protected]>
AuthorDate: Thu Nov 6 07:53:43 2025 +0200
Commit:     Mike Kaganski <[email protected]>
CommitDate: Thu Nov 6 08:08:46 2025 +0100

    Use group separators to clarify literal designating date
    
    Change-Id: Iecc550d17cb928f46bc3cc594711830c0f0d0ccf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193508
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx
index 0b2b25ffc882..5c7d0861c66b 100644
--- a/tools/source/datetime/tdate.cxx
+++ b/tools/source/datetime/tdate.cxx
@@ -70,7 +70,7 @@ sal_uInt16 Date::GetDaysInMonth( sal_uInt16 nMonth, sal_Int16 
nYear )
 sal_Int32 Date::GetAsNormalizedDays() const
 {
     // This is a very common datum we often calculate from.
-    if (mnDate == 18991230) // 1899-12-30
+    if (mnDate == 1899'12'30)
     {
         assert(GetDay() == 30 && GetMonth() == 12 && GetYear() == 1899);
         constexpr sal_Int32 nullDays = comphelper::date::convertDateToDays(30, 
12, 1899);

Reply via email to