Support for integer timestamps

Now the strToDate functions tires to cast the time field as unix timestamp before trying to parse it as a string.
probably should'nt have deleted that