Issue 121584 - com.sun.star.ucb.SimpleFileAccess mothed getDateTimeModified return 0 when url is a remote file
Summary: com.sun.star.ucb.SimpleFileAccess mothed getDateTimeModified return 0 when ur...
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Normal
Target Milestone: 4.0.0
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords:
Depends on: 121922
Blocks:
  Show dependency tree
 
Reported: 2013-01-06 08:23 UTC by Vison
Modified: 2017-05-20 09:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Vison 2013-01-06 08:23:58 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!
Comment 1 Ariel Constenla-Haile 2013-01-31 22:59:01 UTC
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
Comment 2 Ariel Constenla-Haile 2013-03-20 08:46:43 UTC
The fix for bug 121922 fixes this too.
Comment 3 Ariel Constenla-Haile 2013-03-24 13:32:45 UTC
Fixed on trunk