Other foods that may change the odor of your urine include onions, garlic, and coffee. If you suspect food is to blame, eliminating the food source should allow your urine to return to a normal smell in less than 12 hours. If you eliminate the food and the odor remains, there is likely another cause.