LPS-41378 Fix last publish date comparison