Check for getTime method not result

This should fix #1227, for now, but the real issue is why the date object doesn't have that method?
I'm not sure if you actually want to merge this until we fix the real issue