One of my Debian server with fail2ban has a problem to ban ip from brute force attack, however testing logs with fail2ban-regex
worked perfectly. My solution has been found through this page. The cause of my issue was related to the timezone of the system. To solve this problem, i used the command bellow to reconfigure timezone and then fail2ban started to ban as usual.
sudo dpkg-reconfigure tzdata