<div dir="ltr">Hi,<div><br></div><div>I noticed something weird when getting timestamps using HQL:</div><div><br></div><div>If I use the `omero hql` functionality I get this:</div><div><br></div><div><div>(virtualenv) [omero-local@itlomerop01 ~]$ omero_server hql "SELECT <a href="http://event.id">event.id</a>, event.time FROM Event event WHERE id=4621437"</div><div><br></div><div> # | Col1    | Col2<br></div><div>---+---------+--------------------------</div><div> 0 | 4621437 | Mon Jan 23 14:12:45 2017</div><div>(1 row)</div><div><br></div></div><div>Looks correct, and also this is what I see when I use the webclient.</div><div><br></div><div>Also, if I query the database directly I get the same date and if I ask the database to convert to seconds from epoch, I get what I expect to see:</div><div><br></div><div><div>select extract(epoch from event.time) from event where id = 4621437;</div><div>   date_part</div><div>----------------</div><div> 1485180765.782</div></div><div><br></div><div>However, if I do a projection HQL query the response I get is:</div><div><br></div><div><div>Event ID, Event Time</div><div>4621437 1428347867334</div></div><div><br></div><div>What is 1428347867334? It's not seconds/milliseconds/microseconds/etc from epoch.</div><div><br></div><div>The same is true when trying to query over a given range using an HQL projection, which is ultimately what I was trying to achieve (a projection where I use several criteria including the event timestamp).</div><div><br></div><div>Cheers,</div><div><br></div><div>Douglas</div><div><br></div><div><br></div></div>