I have a web application run on Linux.
The date
command shows below.
But the date in my log file is
The date in my log file is wrong. Why the date is different? How can I fix it? I've restarted my server but it doesn't work.
I have a web application run on Linux.
The date
command shows below.
But the date in my log file is
The date in my log file is wrong. Why the date is different? How can I fix it? I've restarted my server but it doesn't work.
Unless user specifies the timezone or uses -Duser.timezone to set the timezone to local time (in your case seems to be CST), JDK would use UTC/GMT as the timezone value by default.