util: make timestamp symmetric with datetime