https://issues.apache.org/ooo/show_bug.cgi?id=121584
Bug ID: 121584
Issue Type: DEFECT
Summary: com.sun.star.ucb.SimpleFileAccess mothed
getDateTimeModified return 0 when url is a remote file
Classification: Code
Product: api
Version: AOO 3.4.1
Hardware: PC
OS: Windows 7
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: code
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Dear All, follows is my code:
oSimpleFileAccess = createUnoService("com.sun.star.ucb.SimpleFileAccess")
inputStream = createUNOService ("com.sun.star.io.InputStream")
localFileTime = oSimpleFileAccess.getDateTimeModified(localFileUrl)
serverFileTime = oSimpleFileAccess.getDateTimeModified(serverUrl)
REM can get right month
print localFileTime.Month
REM always return 0
print serverFileTime.Month
and if I get the last modified date of a local file, the method work well,
but when the url is a remote file, 'getDateTimeModified' method always
return 0
also I want to know what method can be used to get the last updated date of
a remote file.
Please give some suggestions, thanks!
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.