Fixed invalid date->timestamp conversion