Speculation but it could be a simple logic error of sorts. You check your file and the database records your visit. Then the 'most recent update' check sees your recent visit as an updated field.
It would be an almost trivially common scoping error for use of a subroutine or method, anyone who's done even high school programming can probably see how that would happen.