Bug 64408 - BASIC: REGRESSION: FileDateTime function returns literal "/DD/YYYY" rather than day and year
Summary: BASIC: REGRESSION: FileDateTime function returns literal "/DD/YYYY" rather th...
Status: RESOLVED DUPLICATE of bug 63306
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.0.2.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 01:25 UTC by Jim Avera
Modified: 2013-05-10 12:21 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Demo of FileDateTime() returning partially-garbage result (10.60 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-05-10 01:25 UTC, Jim Avera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2013-05-10 01:25:17 UTC
Created attachment 79071 [details]
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
Comment 1 Andras Timar 2013-05-10 12:21:04 UTC

*** This bug has been marked as a duplicate of bug 63306 ***