[
https://issues.apache.org/jira/browse/IO-672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved IO-672.
---------------------
Resolution: Fixed
commit 291a35ef8be015be252664e2cbde0af741cd82f1
IO-672 - FileCopy sets date to 01 Jan 1970
---
src/changes/changes.xml | 5 +++-
src/main/java/org/apache/commons/io/FileUtils.java | 6 ++--
.../org/apache/commons/io/FileUtilsTestCase.java | 33 +++++++++++-----------
3 files changed, 24 insertions(+), 20 deletions(-)
> Copying a File sets last modified date to 01 January 1970
> ---------------------------------------------------------
>
> Key: IO-672
> URL: https://issues.apache.org/jira/browse/IO-672
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.7
> Environment: Tomcat, Linux
> Reporter: Dirk Schreiter
> Priority: Major
>
> The behaviour is new in 2.7 and worked in 2.6. I tested it out, by switching
> the library versions.
> I could not exactly indicate, which call is the cause for the behaviour, but
> it seems it occurs when a file copy / move is done, using FileUtils.
> After copying the file, the destination file has a last modified date of
> 01.01.1970.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)