(Pre-existing) Looks suspiciously like a situation where strftime() would be more apt than snprintf().  Likewise below.