Fix switch to last day bug

contains function compared local date with UTC date. Sometimes 1 day backwards didn't work because of that.