set content-type in upload script
fixed bug where time changes were taking effect 1 day late