Make the add_snapshots script more correct.

Use Javascript Date() object to format the date.