tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: How to show the timestamp of listed file according to the user timezone?
Date Mon, 14 Feb 2011 09:57:22 GMT
On 14/02/2011 05:38, jie tang wrote:
> I place a directory in Tomcat webapps directory. I want to Tomcat list files
> under the directory.
> When I browse the file list in my browser, the file list looks like the
> following
> 
>    2011-02-12_r5384_1669/       Sat, 12 Feb 2011 09:40:44 GMT
> 
> But what I need is
>    2011-02-12_r5384_1669/       Sat, 12 Feb 2011 17:40:44 GMT + 08
> 
> When I type the command "date",it shows
>    Mon Feb 14 13:33:45 CST 2011
> And I added the following statement to catalina.sh
>    -Duser.timezone=GMT+08 \
> 
> So what should I do to get what I need?

You'll need to modify/extend the DefaultServlet to check the user's
Locale and determine the timezone from that.

Mark



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


Mime
View raw message