fix to set time stamps correctly for uploaded files