convert logstamp to datetime