Wrong timestamp shown in Visitor
There's a bug found in visitor option in cpanel it shown wrong timestamp as i have check there's a right time shown in domlogs from commandline:
Moreover i have restarted httpd and mysql services as well and there's correct time in whm and global php.ini date.timezone = Asia/Karachi
Please find attachment with wrong timestamp.
62.210.187.247 182.176.116.195 - - [23/Aug/2016:17:46:01 +0500] "GET /category/virtualization/ HTTP/1.1" 200 11716 "http://example.com/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0"Moreover i have restarted httpd and mysql services as well and there's correct time in whm and global php.ini date.timezone = Asia/Karachi
Please find attachment with wrong timestamp.
-
Hello, I've been unable to reproduce this issue on a test server. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you. 0 -
Isn't possible to investigate the issue without opening the ticket ? 0 -
I've been unable to reproduce the issue, as when I test this the correct date/time appears in "cPanel >> Vistors". Opening a support ticket will allow us to take a closer look at your system to determine why this is happening. Thank you. 0 -
The date 1/1/70 is "epoch date" en.wikipedia.org/wiki/Unix_time#History Something else going on there. 0 -
Look at your domlogs file and you will see it lists two IP's in the front of each line and should only be one, the visitors. Check your LogFormat settings in Apache and you will find it set incorrectly. Should look like this with %a %l %u %t LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%a %l %u %t \"%r\" %>s %b" common Your LogFormat is incorrect and causing latest visitors date/time to show incorrectly as it reads entries from the domlogs file by "spaces" and the extra local IP is throwing off the format. Edit httpd.conf with above and restart apache then check latest visitors again. 0 -
Also, you will need to manually edit the domlog files removing the 2nd local IP addresess, a quick sed search/replace will do this and new entries will be added correctly via Apache. 0
Please sign in to leave a comment.
Comments
6 comments