Moved datetime determination to client