Call the get_date functions with timestamp_t instead of struct tm

This is the much more natural way to use this function, now that I look at
it...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>