Sec. 2. A defendant participating in a program under this article shall be confined in the county jail or in another facility designated by the sheriff at all times except for:
(1) time spent at work and traveling to or from work; and
(2) time spent attending or traveling to or from an education or rehabilitation program approved by the sheriff.