My Spring web app is storing timestamps with time zone in Postgre database. Right now, I'm using Thymeleaf
and displaying raw timestamps on frontend. Those timestamps look really bad, so I want to convert them to local date and time.
I know there's an option to convert them right after they're retrieved via repository from the database, but I've been told that there's better way using JavaScript. I've searched for a bit, but found no solution so far.
I just need a keyword I can read on. Any leads on how to use JS to convert that?