Apache OpenOffice (AOO) Bugzilla – Issue 121584
com.sun.star.ucb.SimpleFileAccess mothed getDateTimeModified return 0 when url is a remote file
Last modified: 2017-05-20 09:32:08 UTC
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!
The bug is also reproducible with OOo 3.4.0 BETA OOO340m0 Build 9583 It is also reproducible using the low-level UCB API, as shown in attachment 80187 [details] from bug 121202
The fix for bug 121922 fixes this too.
Fixed on trunk