```ruby
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'lstash'

require 'rspec/its'

require 'timecop'

ENV['ES_URL'] = nil

RSpec.configure do |config|
  config.order = 'random'
end

require 'stringio'

def capture_stdout(&blk)
  old = $stdout
  $stdout = fake = StringIO.new
  blk.call
  fake.string
ensure
  $stdout = old
end

def capture_stderr(&blk)
  old = $stderr
  $stderr = fake = StringIO.new
  blk.call
  fake.string
ensure
  $stderr = old
end```

Fix the timezone for the specs. We test in a specific timezone.
user
```ruby
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'lstash'

require 'rspec/its'

require 'timecop'

ENV['ES_URL'] = nil
ENV['TZ'] = 'Europe/Amsterdam' # Test in a specific timezone.

RSpec.configure do |config|
  config.order = 'random'
end

require 'stringio'

def capture_stdout(&blk)
  old = $stdout
  $stdout = fake = StringIO.new
  blk.call
  fake.string
ensure
  $stdout = old
end

def capture_stderr(&blk)
  old = $stderr
  $stderr = fake = StringIO.new
  blk.call
  fake.string
ensure
  $stderr = old
end```
assistant