How to use the MySQL CONVERT_TZ function in a JPQL or HQL query
问题 I currently have table in a MySQL database which has a startDate and endDate which are both timestamps . This is linked to the code using hibernate. I can return these by using the following HQL SELECT startDate, endDate FROM Reservation where id = :id What I am trying to do is return these dates based on a given timezone. I know MySQL has a function CONVERT_TZ which can return the dates based on a given timezone, I'm wondering if HQL has a similar function? I know HQL has a TIMESTAMP_WITH