fix datetime selector