#2122·fd

[BUG] file not found when using --changed-after / --changed-before

Author: 1ngemarCreated Sep 5, 2026Updated Sep 6, 2026
Labelsbug

Checks

  • I have read the troubleshooting section and still think this is a bug.

Describe the bug you encountered:

Hi guys,

and thanks for the great fd.

However, I believe there's an issue when looking for files created a certain day, when at midnight. Or hour, at start of hour, etc.

The compare conditions, now, I believe are

--changed-after ..... >mtime --changed-before .... <mtime

or something along those line. That means that a file created at midnight, eg with touch file -d is missed when you search: what files are created ?

Same goes for: what files are created 07:xx, 08:xx?, the files with time 07:00, 08:00 are not found.

The lower bound ought to be >= mtime.

BR/ Ingemar

Describe what you expected to happen:

No response

What version of fd are you using?

10.5.0

Which operating system / distribution are you on?

Linux, CachyOS