----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

on 2/10/00 6:39 PM, Dwayne Schultz <[EMAIL PROTECTED]> wrote:

> First of all, I noticed jserv.log reports times in the current time zone and
> mod_jserv.log reports times in GMT.  There is probably a FAQ on this (sorry)
> but I couldn't get to it.

Why couldn't you get to the FAQ?

Also, you DO have the source code. A two second examination reveals the
solution:

            if (timestamp) {
                String dateFormat = configurations.getString(identifier +
"." + 
KEYWORD_DATEFORMAT, DEFAULT_DATEFORMAT);
                formatter = new SimpleDateFormat(dateFormat);
                /*
                 * This is a workaround for the bug in SimpleDateFormat that
                 * doesn't use TimeZone.getDefault() when constructing
                 * its format. They use an hard coded PST.
                 */
                formatter.setTimeZone(TimeZone.getDefault());
            }

So, you need to somehow specify the default TimeZone for your JVM.

-jon

-- 
Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to