i'm an idiot - fixed datetime issue