I don't think it's a user frontend issue. The problem was happening because I was just updating the post, I wasn't providing any date. So WP was assigning the current time as the post update date. That was the problem. So I fixed it by providing the previous post date.
In the backend, I am not handling anything. WP is doing it, so it's a WP issue.