Mary and Joseph were observant Jews, Jesus would have been circumcised when he was eight days old, Joseph would have named Him, and there would have been a sacrifice.
I have know idea what your dates are referring to, the family would have acted in accordance to the Law.
The rite of circumcision is supposed to date back to Abraham, hundreds of years before the first temple was built. All of the Israelite baby boys were supposed to be circumcised on the 8th day--there was no way to force families from all over the Holy Land to bring the newborn babies to Jerusalem for a ritual that could be just as well handled locally. Infant mortality was enough of a problem without aggravating it.
If you know of a passage in the Bible that says that circumcision had to be performed in the temple, please let me know where it is.
Moses failed to have his sons circumcised on the 8th day: see Exodus 4:25.