Added time conversion, revised food attribute logic