fix datetime label logic