Avoid version-specific formatting issues by checking data directly.
Merge pull request #648 from rhattersley/pandas-time-fix

Avoid version-specific formatting issues by checking data directly.