2
This weekend we had the change to summer time here in my region, I have some machines running Ubuntu server 16.04 with java applications.
All of them with JBOSS, POSTGRES for one application and another with GLASSFISH, MYSQL.
If I type the command #date
on the server it returns me the correct date, already adjusted for daylight saving time, but when saving the records in the applications they get the wrong date!
For example: Now they are 12:45 if I record any records in any of the applications it records as 11:45.
I believe it is a problem with java, has anyone ever been there? or knows how to solve?
I use the OPEN JDK 1.7.0_95
This can be database too
– Wictor Chaves
Do you have a variable that stores the time in java before sending it to the database? what are the date settings for your database?
– WMomesso
I have no variable I simply use new Date(); before the summer time change was all right
– Alessandro Guimarães