timedb: fix timestamp formatting