Remove localtime conversion function and constant name simplification