avoid time diff computation on the SQL side to prevent "1690 BIGINT UNSI...

...GNED value is out of range" error

fix gh-33