Use DatTime to generate timestamp to make PG compatible