I having an strange situation,
in futon, the JavaSCript shell is returning date time in GMT+8,
which is inline with the server timezone.
However, when I tail the log file,
it is showing GMT -3, 11 hours difference.
I'm suspecting there is a configuration somewhere to fix this issue.
Anyone has an idea?
OS:- CentOS release 5.7 (2.6.18-194.11.4.el5)
Couchdb version :- Apache CouchDB 1.1.1
Erlang :- V5.8.1 (R14B (erts-5.8.1))
Log format:-
[Sun, 04 Dec 2011 04:10:06 GMT] [info] [<0.19767.816>] IP - - 'GET' URL 200
Current server time is 3pm
Here is the screen capture :-
Eshell V5.8.1 (abort with ^G)
1> {Date={Year,Month,Day},Time={Hour,Minutes,Seconds}} = erlang:localtime().
{{2011,12,6},{9,56,22}}
[root@localhost] ~ >> date
Tue Dec 6 09:56:41 SGT 2011
Here is the result of date :-
date && date -u Tue Dec 6 12:03:35 SGT 2011 Tue Dec 6 04:03:35 UTC 2011
NOTE: I might confuse over the GMT log format (likely my wrong interpretation)
@JeffSnider - I think you are close, most likely is my mis-understanding originally
1> httpd_util:rfc1123_date(). "Tue, 06 Dec 2011 04:09:19 GMT"