On 14.12.2016 16:48, Farhan Tariq wrote:
Hello team,

I am not sure why the timezone is explicitly set to GMT in
ExtendedAccessLogValve class?
To capture URL encoded parameters I looking to use this class but need help
to get time in GMT+5. I am using tomcat 7 on redhat.
Any suggestions?


Hi.
This is not a Tomcat answer, it is a more general answer.
I don't know if the Tomcat AccessLogValve allows to change the timestamp to anything else than GMT + 0.

But even if it did, in my opinion it would be a bad idea to use that.
The reason is that you may one day have several systems to monitor, and they may not all be in the same timezone. So how would you compare this data between different systems ?

It would be much better to pick up that timestamp as it is, knowing that it is GMT + 0, and then *in your application* make the adjustment, in function of a parameter *of your application*. There are probably a multitude of existing Java libraries which facilitate this kind of calculation.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to