diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java index 5afbb155e..2412021ce 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java @@ -1722,9 +1722,9 @@ public class FTP long localTimestamp = localFile.lastModified(); if (this.action == SEND_FILES) { - return remoteTimestamp + timeDiffMillis > localTimestamp; + return remoteTimestamp + timeDiffMillis >= localTimestamp; } else { - return localTimestamp > remoteTimestamp + timeDiffMillis; + return localTimestamp >= remoteTimestamp + timeDiffMillis; } }