Add time to saved media filenames

see #1689
Can we get rid of this for loop and just say that second level precision is enough? At minimum, the loop needs braces.