Changed end_at to begin_at
changed time() to mktime()