fix "::localtime & ::gmtime not found" issue