When did smile=happy first happen?

A muscular contortion of the face is the universal signal for pleasure and happiness. When was this set in stone, and why wasn’t it the :frowning: instead of the :slight_smile: ? Showing one’s teeth would seen aggrresive from an animal standpoint.

See this thread:

Why Do Human Beings Smile?