Hi, how can it happen that I have different timezone offsets in my logs? The write_log function in main.inc should default to php time(). But why can this result in different timezone offsets? Some insight please ... Currently it is hard to track back issues back to apache access logfile. Regards, Roland [09-Jul-2009 07:00:49 +0200]: Successful login for demo0@mail4us.net (id 1175) from 95.91.44.235 [09-Jul-2009 02:26:39 -0400]: Successful login for demo@mail4us.net (id 1171) from 91.64.83.204 [10-Jul-2009 07:39:56 +0900]: Successful login for demo@mail4us.net (id 1215) from 217.128.145.75
List info: http://lists.roundcube.net/dev/
On Mon, Jul 13, 2009 at 11:33 AM, Roland Lieblroland@roland-liebl.de wrote:
Hi, how can it happen that I have different timezone offsets in my logs? The write_log function in main.inc should default to php time(). But why can this result in different timezone offsets? Some insight please ... Currently it is hard to track back issues back to apache access logfile. Regards, Roland [09-Jul-2009 07:00:49 +0200]: Successful login for demo0@mail4us.net (id 1175) from 95.91.44.235 [09-Jul-2009 02:26:39 -0400]: Successful login for demo@mail4us.net (id 1171) from 91.64.83.204 [10-Jul-2009 07:39:56 +0900]: Successful login for demo@mail4us.net (id 1215) from 217.128.145.75
That's totally weird. The logs are not aggregated from different servers and the servers are not in sync, or something? I could see how the date would look different depending on what "created" the entry (e.g. PEAR vs. native PHP). But that's not the case. Any pointers?
Till _______________________________________________ List info: http://lists.roundcube.net/dev/
On Tue, 14 Jul 2009 16:36:28 +0200, till klimpong@gmail.com wrote:
On Mon, Jul 13, 2009 at 11:33 AM, Roland Lieblroland@roland-liebl.de wrote:
Hi, how can it happen that I have different timezone offsets in my logs? The write_log function in main.inc should default to php time(). But why can this result in different timezone offsets? Some insight please ... Currently it is hard to track back issues back to apache access
logfile.
Regards, Roland [09-Jul-2009 07:00:49 +0200]: Successful login for demo0@mail4us.net
(id
- from 95.91.44.235
[09-Jul-2009 02:26:39 -0400]: Successful login for demo@mail4us.net (id 1171) from 91.64.83.204 [10-Jul-2009 07:39:56 +0900]: Successful login for demo@mail4us.net (id 1215) from 217.128.145.75
That's totally weird. The logs are not aggregated from different servers and the servers are not in sync, or something? I could see how the date would look different depending on what "created" the entry (e.g. PEAR vs. native PHP). But that's not the case. Any pointers?
Till
It is running on a VPS of HostEurope. It is really weird because all the apache logs are in sync. It only occurs within the RoundCube logs. I will try modify function write log to use date() with second (optional) argument [, int timestamp]. At the moment it looks like if date() function was used with a different "timestamp" according to user's timezone offset in the function format_date within one request it "remembers" user's timezone for creating the log line.
Roland
List info: http://lists.roundcube.net/dev/
On Tue, Jul 14, 2009 at 5:01 PM, Roland Lieblroland@roland-liebl.de wrote:
On Tue, 14 Jul 2009 16:36:28 +0200, till klimpong@gmail.com wrote:
On Mon, Jul 13, 2009 at 11:33 AM, Roland Lieblroland@roland-liebl.de wrote:
Hi, how can it happen that I have different timezone offsets in my logs? The write_log function in main.inc should default to php time(). But why can this result in different timezone offsets? Some insight please ... Currently it is hard to track back issues back to apache access
logfile.
Regards, Roland [09-Jul-2009 07:00:49 +0200]: Successful login for demo0@mail4us.net
(id
- from 95.91.44.235
[09-Jul-2009 02:26:39 -0400]: Successful login for demo@mail4us.net (id 1171) from 91.64.83.204 [10-Jul-2009 07:39:56 +0900]: Successful login for demo@mail4us.net (id 1215) from 217.128.145.75
That's totally weird. The logs are not aggregated from different servers and the servers are not in sync, or something? I could see how the date would look different depending on what "created" the entry (e.g. PEAR vs. native PHP). But that's not the case. Any pointers?
Till
It is running on a VPS of HostEurope. It is really weird because all the apache logs are in sync. It only occurs within the RoundCube logs. I will try modify function write log to use date() with second (optional) argument [, int timestamp]. At the moment it looks like if date() function was used with a different "timestamp" according to user's timezone offset in the function format_date within one request it "remembers" user's timezone for creating the log line.
Roland
Hehe... ! I just added a check to the installer for a (correct) date.timezone in php.ini. When none is added, it assumes the user's it seems. I just tested it on a development server in the u.s. (usually America/Chicago) and when I added "Lalalala/Foo" to the php.ini it assumed Europe/Berlin instead.
Till _______________________________________________ List info: http://lists.roundcube.net/dev/
----- Original Message ----- From: "till" klimpong@gmail.com To: roland@roland-liebl.de Cc: "RoundCube Dev" dev@lists.roundcube.net Sent: Tuesday, July 14, 2009 5:15 PM Subject: Re: [RCD] Different Timezone offsets in my RoundCube log
On Tue, Jul 14, 2009 at 5:01 PM, Roland Lieblroland@roland-liebl.de wrote:
On Tue, 14 Jul 2009 16:36:28 +0200, till klimpong@gmail.com wrote:
On Mon, Jul 13, 2009 at 11:33 AM, Roland Lieblroland@roland-liebl.de wrote:
Hi, how can it happen that I have different timezone offsets in my logs? The write_log function in main.inc should default to php time(). But why can this result in different timezone offsets? Some insight please ... Currently it is hard to track back issues back to apache access
logfile.
Regards, Roland [09-Jul-2009 07:00:49 +0200]: Successful login for demo0@mail4us.net
(id
- from 95.91.44.235
[09-Jul-2009 02:26:39 -0400]: Successful login for demo@mail4us.net (id 1171) from 91.64.83.204 [10-Jul-2009 07:39:56 +0900]: Successful login for demo@mail4us.net (id 1215) from 217.128.145.75
That's totally weird. The logs are not aggregated from different servers and the servers are not in sync, or something? I could see how the date would look different depending on what "created" the entry (e.g. PEAR vs. native PHP). But that's not the case. Any pointers?
Till
It is running on a VPS of HostEurope. It is really weird because all the apache logs are in sync. It only occurs within the RoundCube logs. I will try modify function write log to use date() with second (optional) argument [, int timestamp]. At the moment it looks like if date() function was used with a different "timestamp" according to user's timezone offset in the function format_date within one request it "remembers" user's timezone for creating the log line.
Roland
Hehe... ! I just added a check to the installer for a (correct) date.timezone in php.ini. When none is added, it assumes the user's it seems. I just tested it on a development server in the u.s. (usually America/Chicago) and when I added "Lalalala/Foo" to the php.ini it assumed Europe/Berlin instead.
Till
Indeed ... php.ini date.timezone was not set. I've done it now ... let's see ...
List info: http://lists.roundcube.net/dev/
----- Original Message ----- From: "Roland Liebl" roland@roland-liebl.de To: "till" klimpong@gmail.com Cc: "RoundCube Dev" dev@lists.roundcube.net Sent: Tuesday, July 14, 2009 7:23 PM Subject: Re: [RCD] Different Timezone offsets in my RoundCube log
----- Original Message ----- From: "till" klimpong@gmail.com To: roland@roland-liebl.de Cc: "RoundCube Dev" dev@lists.roundcube.net Sent: Tuesday, July 14, 2009 5:15 PM Subject: Re: [RCD] Different Timezone offsets in my RoundCube log
On Tue, Jul 14, 2009 at 5:01 PM, Roland Lieblroland@roland-liebl.de wrote:
On Tue, 14 Jul 2009 16:36:28 +0200, till klimpong@gmail.com wrote:
On Mon, Jul 13, 2009 at 11:33 AM, Roland Lieblroland@roland-liebl.de wrote:
Hi, how can it happen that I have different timezone offsets in my logs? The write_log function in main.inc should default to php time(). But why can this result in different timezone offsets? Some insight please ... Currently it is hard to track back issues back to apache access
logfile.
Regards, Roland [09-Jul-2009 07:00:49 +0200]: Successful login for demo0@mail4us.net
(id
- from 95.91.44.235
[09-Jul-2009 02:26:39 -0400]: Successful login for demo@mail4us.net (id 1171) from 91.64.83.204 [10-Jul-2009 07:39:56 +0900]: Successful login for demo@mail4us.net (id 1215) from 217.128.145.75
That's totally weird. The logs are not aggregated from different servers and the servers are not in sync, or something? I could see how the date would look different depending on what "created" the entry (e.g. PEAR vs. native PHP). But that's not the case. Any pointers?
Till
It is running on a VPS of HostEurope. It is really weird because all the apache logs are in sync. It only occurs within the RoundCube logs. I will try modify function write log to use date() with second (optional) argument [, int timestamp]. At the moment it looks like if date() function was used with a different "timestamp" according to user's timezone offset in the function format_date within one request it "remembers" user's timezone for creating the log line.
Roland
Hehe... ! I just added a check to the installer for a (correct) date.timezone in php.ini. When none is added, it assumes the user's it seems. I just tested it on a development server in the u.s. (usually America/Chicago) and when I added "Lalalala/Foo" to the php.ini it assumed Europe/Berlin instead.
Till
Indeed ... php.ini date.timezone was not set. I've done it now ... let's see ...
I can confirm that r2753 detects missing timezone setting in php.ini for me.
List info: http://lists.roundcube.net/dev/
List info: http://lists.roundcube.net/dev/
On Tue, Jul 14, 2009 at 8:55 PM, Roland Lieblroland@roland-liebl.de wrote:
I can confirm that r2753 detects missing timezone setting in php.ini for me.
So, does it work now?
PHP's error_log (probably syslog) should have been filled with notices about these. Make sure to set log_errors = On, and maybe set a dedicated error_log to catch these.
Till _______________________________________________ List info: http://lists.roundcube.net/dev/
On Tue, 14 Jul 2009 21:10:29 +0200, till klimpong@gmail.com wrote:
On Tue, Jul 14, 2009 at 8:55 PM, Roland Lieblroland@roland-liebl.de wrote:
I can confirm that r2753 detects missing timezone setting in php.ini
for
me.
So, does it work now?
PHP's error_log (probably syslog) should have been filled with notices about these. Make sure to set log_errors = On, and maybe set a dedicated error_log to catch these.
Till
Yes, perfect. It works now!
Thanks a lot! Roland
List info: http://lists.roundcube.net/dev/
till wrote:
Hehe... ! I just added a check to the installer for a (correct) date.timezone in php.ini. When none is added, it assumes the user's it seems. I just tested it on a development server in the u.s. (usually America/Chicago) and when I added "Lalalala/Foo" to the php.ini it assumed Europe/Berlin instead.
Do we really need this check? By default date.timezone in php.ini isn't set, so should we require this?
http://trac.roundcube.net/ticket/1485989