This template is not doing anything with datetime. What makes you think it is two hours off?
There’s a good chance it is not, but you are just interpreting it wrong. Datetime is usually stored in UTC - so that time is not depending on where you live. If it is summertime in Norway, there’s a good chance Norwegian time is +2 hours after UTC. If you format the UTC datetime as local time it will display correctly.
But since you do not show where you get the datetime from, what it is and what you do with it, it is hard to help you further. Anyway, there’s nothing wrong with the template, and ChatGPT is not going to help you in any meaningful way.
There’s a lot here though on conversion, this is a good start: