java.sql.Timestamp objects do not have time zones - they are points in time, for example java.util.Date .
If you think that they are in a specific time zone, you may be confused due to misleading output (for example, something will automatically convert this moment to local time using the default time zone), or you may created data inappropriately. The answer you need will depend on the details of your situation.
For example, if you just want to display the Timestamp value in a specific time zone, you can use SimpleDateFormat , set the time zone accordingly and simply format the Timestamp (as it extends Date ). I do not believe that this will allow you to display the same accuracy as the temporary memory stored inside, but this may not be a problem for you.
If your data was not created correctly, then there may or may not be a way to βfixβ it - for example, some uncertainties may arise due to changes in daylight saving time. However, the more we know about it, the better we can help you.
source share