change time event to bucket