Fixed bug that caused saving attachments with the same name due to
precision limited to seconds