mariadb10: don't use gmt_sec_to_TIME() with "struct timeval"

It exists in MySQL 5.6 but doesn't in MariaDB 10.0.4.