Skip to content

Commit 86458c6

Browse files
committed
Only read file config for time zone - resolves #523
1 parent 56ac8da commit 86458c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pghero/engine.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class Engine < ::Rails::Engine
1717
end
1818
end
1919

20-
PgHero.time_zone = PgHero.config["time_zone"] if PgHero.config["time_zone"]
20+
file_config = PgHero.file_config || {}
21+
PgHero.time_zone = file_config["time_zone"] if file_config["time_zone"]
2122
end
2223
end
2324
end

0 commit comments

Comments
 (0)