refactor helper localize date & time