From 0a2cb5093f7fbba370fd9b6caaf308139220b47b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 19 Apr 2011 00:28:08 +0000 Subject: $time_local and $time_utc are locale-independent This doesn't apply to people that use strftime()-formats, but that's a minority. --- lib/clogger.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/clogger.rb') diff --git a/lib/clogger.rb b/lib/clogger.rb index e368115..be1bdce 100644 --- a/lib/clogger.rb +++ b/lib/clogger.rb @@ -19,8 +19,6 @@ class Clogger # support nginx variables that are less customizable than our own ALIASES = { '$request_time' => '$request_time{3}', - '$time_local' => '$time_local{%d/%b/%Y:%H:%M:%S %z}', - '$time_utc' => '$time_utc{%d/%b/%Y:%H:%M:%S %z}', '$msec' => '$time{3}', '$usec' => '$time{6}', '$http_content_length' => '$content_length', @@ -37,6 +35,8 @@ class Clogger :pid => 6, # getpid() :request_uri => 7, :time_iso8601 => 8, + :time_local => 9, + :time_utc => 10, } private -- cgit v1.2.3-24-ge0c7