diff --git a/copy.go b/copy.go index 092d68a..b529dca 100644 --- a/copy.go +++ b/copy.go @@ -32,7 +32,6 @@ import ( "io/ioutil" "os" "path/filepath" - "time" ) // Copy copies src to dest, doesn't matter if src is a directory or a file @@ -66,7 +65,7 @@ func filecopy(src, dest string, info os.FileInfo) error { if err = os.Chmod(f.Name(), info.Mode()); err != nil { return err } - if err = os.Chtimes(f.Name(), time.Now().Local(), info.ModTime()); err != nil { + if err = os.Chtimes(f.Name(), info.ModTime(), info.ModTime()); err != nil { return err } s, err := os.Open(src)