I'm running Windchill on a Unix server. I try to log something to an external file, but I also print information to the MethodServer at the same time.
- In the MethodServer, the information is printed with timestamp "2015-08-27 08:49:56" using System.out.println().
- In my log file, the timestamp is printed as "2015-08-27 13:49:56" using output.println(new java.sql.Timestamp(System.currentTimeMillis()) + "information").
I've tried searching the internet for how to change the timestamp (which is essentially GMT, but not technically) to a different timezone, but I have gotten anywhere. But obviously the logging has figured it out somehow.