allow timezone parameters to work correctly with charts
This commit is contained in:
1 parent
7b44f08dd5
commit
868882a0c9
3 files changed
+14
-3
No files matched your search
@@ -328,6 +328,9 @@ class ApplicationController < ActionController::Base
|
||||
# use the offset to find an appropriate timezone
|
||||
def set_timezone_from_offset(offset)
|
||||
offset = offset.to_i
|
||||
# always set to UTC if offset is 0
|
||||
return 'UTC' if offset == 0
|
||||
|
||||
# keep track of the currently matched time zone
|
||||
current_zone = nil
|
||||
|
||||
|
||||
Reference in new issue
Block a user