Zantac

My doctor prescribed me 150mg of Zantac, and the bottle says I can take it twice a day. I just was wondering when the best time to take both would be? I've been taking the one early in the morning before breakfast- but end up with heartburn at night; when would be the best to take the second one?