Attempt at duplicate checking, fails on what looks like timezone issues