fixed Warning: Use of "localtime" without parentheses is ambiguous