I'd have to look at the code to be sure, but I'd guess it converts the timestamp into the browser's timezone. You could test this by changing the timezone on your computer and seeing how Lemmy displays it.
At least that's how I'd build it. Keeping backend times in UTC and then converting on the frontend to the user's set timezone is generally a best practice. Using non-UTC times on servers is just asking for trouble.