@Adrian N Thank you for reaching out.
It seems like the machine where the code is being debugged and the server where the database is hosted are in different time zones/locales.
This should get corrected if you match the time zone settings on both machines.
However, the recommended way of storing time stamps is to convert them to UTC first and then store in the database.
When you retrieve the value, you convert them from UTC into the time zone of the client application.
----------
If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.