https://bugs.freedesktop.org/show_bug.cgi?id=64408
Priority: medium
Bug ID: 64408
Assignee: [email protected]
Summary: BASIC: REGRESSION: FileDateTime function returns
literal "/DD/YYYY" rather than day and year
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: Other
Whiteboard: BSA
Status: UNCONFIRMED
Version: 4.0.2.2 release
Component: BASIC
Product: LibreOffice
Created attachment 79071
--> https://bugs.freedesktop.org/attachment.cgi?id=79071&action=edit
Demo of FileDateTime() returning partially-garbage result
The FileDateTime(path) function is supposed to return a string giving the
modification date & time of a file.
In 4.0 it became broken. It was working in 3.x.
Now you get results like "04/DD/YYYY 17:58:02"
For some reason the DD and YYYY are not replaced with values.
I will attach a trivial demo spreadsheet. The code in the macro is as follows:
Sub MyMacro
Dim path : path = "/etc/passwd"
Dim d
d = FileDateTime(path)
MsgBox "FileDateTime(" & path & ") = """ & d & """"
End Sub
Operating System: Ubuntu
Version: 4.0.2.2 release
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs