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

            Bug ID: 166342
           Summary: LibreOffice Basic: CDateToUnoDateTime and Format(time,
                    "hh-mm-ss")
           Product: LibreOffice
           Version: 25.2.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Since update from version 24.8.4-2 to version 25.2.1-2 in libreoffice basic the
function Function Format(time, "hh-mm-ss") in combination with oDateTime object
does not work any more. Every time, if I use this function, it gives a value
like "17:10:00" back. If I used it withe libreoffice 24.08.4, the value was
correct like "17-10-00".

Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 8; OS: Linux 6.13; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.utf8); UI: de-DE
25.2.2-1
Calc: CL threaded

Steps to Reproduce:
I wrote a small routine, for getting a timestamp like this:

Sub TimeStampMsgCUS()
    Dim oDateTime As Object
    Dim currentDate As String
    Dim currentTime As String
    Dim sTStamp as string

    ' Erstellen Timestamp
    oDateTime = createUnoService("com.sun.star.util.DateTime")
    currentDate = Format(Date, "yyyy-MM-dd")
    currentTime = Format(Time, "hh-mm-ss")    

    sTStamp = currentDate & "_" & _
              currentTime

        MsgBox(sTStamp)

End Sub

Before I used the Version > 25.1 - in my case the version 24.8.4 this worked
correct.

Actual Results:
2025-04-25_18:27:13

Expected Results:
2025-04-25_18-27-13


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I've tested thin on Manjaro Linux an Windows 10.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to