https://bugs.documentfoundation.org/show_bug.cgi?id=133711

            Bug ID: 133711
           Summary: getLocalDateTime function shows the wrong date
           Product: LibreOffice
           Version: 7.0.0.0.alpha1+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: smartaz...@gmail.com

Description:
i18npool::Calendar_gregorian::getLocalDateTime used in LibreOffice Basic shows
the wrong day and year(usually 1950) but the time is correct.

Steps to Reproduce:
1. Run this code in libreOffice Basic:

Sub Main
        dim oLocale As New com.sun.star.lang.Locale
        oLocale.Language = "en"
        oLocale.Country = "UK"

        oCal = CreateUnoService("com.sun.star.i18n.LocaleCalendar")


        oCal.LoadCalendar("gregorian", oLocale)
        Print "Now(): " & Now() & ", getLocalDateTime(): " &
CDate(oCal.getLocalDateTime() )
End Sub

Actual Results:
Now(): 05.06.2020 19:00:52, getLocalDateTime(): 04.06.1950 19:00:52

Expected Results:
Now(): 05.06.2020 19:00:52, getLocalDateTime(): 05.06.2020 19:00:52


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
should show the correct date for the specified locale.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to