Merge pull request #1356 from dsander/fix-javascriptagent-timezone

Add initializer which sets the TZ environment variable

Dominik Sander 9 lat temu
rodzic
commit
e5fcb245e6
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      config/initializers/timezone.rb

+ 2 - 0
config/initializers/timezone.rb

@@ -0,0 +1,2 @@
1
+# Set the timezone for the JavascriptAgent (libv8 only relies on the TZ variable)
2
+ENV['TZ'] = Time.zone.tzinfo.canonical_identifier