Fix datetime syntax