find -newermt timezone (?) problem


New Member

We got a new task at the University. I thought I managed to solve it, but I bumped into a timezone problem (probably).

The task was to get the exact time, then adding a new user, then finding all the files that has changes since asking for the exact time in Linux.

I used date ’+%Y-%m-%d %H:%M:%S’ to find out the exact time. -> I got something like 2020-11-07 10:00.00 (CET)
Then I used sudo adduser name
Finally I typed find . -type f -newermt "11/07/2020 10:00:00" -> it returned nothing
If i wrote find . -type f -newermt "11/07/2020 9:00:00" instead of that, it did return some stuff.

Does anybody know what's wrong here?

Many thanks for the replies in advance!
Last edited:

$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online