corrected some function calls related to date/time formatting