From c48ff63e7a96260540f9399201cbd7a23d65c9fa Mon Sep 17 00:00:00 2001 From: Dominik Sander Date: Tue, 15 Mar 2016 22:12:50 +0100 Subject: [PATCH] Add initializer which sets the TZ environment variable This properly propagates the configured TIMEZONE to the system TZ variable which is used by libv8 in the JavascriptAgent to access the current time. --- config/initializers/timezone.rb | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 config/initializers/timezone.rb diff --git a/config/initializers/timezone.rb b/config/initializers/timezone.rb new file mode 100644 index 0000000000..49db8bad76 --- /dev/null +++ b/config/initializers/timezone.rb @@ -0,0 +1,2 @@ +# Set the timezone for the JavascriptAgent (libv8 only relies on the TZ variable) +ENV['TZ'] = Time.zone.tzinfo.canonical_identifier