Fix wrong dates being produced from last-timestamp.sh script.