Greetings all
i have a j2ee app using spring framework
and while debugging on the online server (centos os)
when trying to get the date in the app by printing the value of new Date(); object
it retrieves the time in GMT-6 although when getting the server time through the terminal
command date it’s retrieved in GMT time, the real time, so i am wondering where does the GMT-6 came from, why such strange behaver occurs ?
Greetings all i have a j2ee app using spring framework and while debugging on
Share
Problem is solved after restarting the apache,tomcat… but still don’t know why such behaviour occurs.