DateTime parsing fix in storing a query

Datetime parsed from unix epoch timestamp.