It records "forever". I'm not sure but most likely not longer than one day. And no, there is no setting to change that.
Good thing it will not stop whenever an epg event ends. I will stick a 32GB usb in the back of the box, it will be good enough for the timeshift I believe.