Skip to content

Business intelligence made simple

Only set time zone if not already set

Andrew Kane1d96fdbd1ff1
diff --git a/lib/blazer/engine.rb b/lib/blazer/engine.rb
index 015b2842..9ab19b18 100644
--- a/lib/blazer/engine.rb
+++ b/lib/blazer/engine.rb
@@ -6,7 +6,7 @@ module Blazer
# use a proc instead of a string
app.config.assets.precompile << proc { |path| path =~ /\Ablazer\/application\.(js|css)\z/ }
- Blazer.time_zone = Time.zone
+ Blazer.time_zone ||= Time.zone
end
end
end