Fix insync bug

Due to a string vs. time comparison the insync? method was bugged. This
commit fixes it for now, but it may be advisable to revisit what type
of values are being passed around to clean it up better.