Fixed LC_ALL and datetime issues