Edwards, who has been in police custody since her arrest, was convicted under the Cyber Security Act and the Cyber Crimes Act - new legislation that came into effect this year.
She admitted to using a computer system to publish the offensive statements, acknowledged having no lawful excuse and conceded that her words were motivated by hatred.
Her lawyer, Joseph Katati, described Edwards as a remorseful first offender with potential.
He went on to detail how she was a breadwinner and philanthropist who sponsored a Zambian girls' football team that would suffer from her imprisonment.
He also delivered a detailed public apology on her behalf.
"I want to unreservedly apologise to the president, Mr Hakainde Hichilema, his family, and the nation of Zambia for the words that I uttered against the president and for the negative effects that those words may have caused to the president, his family, and the nation at large," it said.
Throughout her court appearances, Edwards appeared subdued - a stark contrast to her online persona.
The magistrate acknowledged Mr Katati's plea for mitigation and said Edwards's sentence would be effective from the time of her arrest.
Mr Katati said he had not yet received instructions from his client on whether to appeal against the sentence.
The jailing of the influencer has divided opinion in Zambia, with some saying it was necessary while others arguing that it violates freedom of speech.
Hichilema, who came to office in 2021, has abolished criminal defamation laws against the president, but Zambians still face prosecution under other laws.
In September, two men were sentenced to two years in prison for attempting to use witchcraft to kill President Hichilema.