Adding default timezone setting
Moving curl close to after error message