diff options
| author | Zog | 2018-01-11 22:12:47 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-01-11 22:35:01 +0100 |
| commit | 3e0591073505eb24b27dfe24b433f2bfece0daa7 (patch) | |
| tree | a8208a63c8f07efbd36bdb238ce808aa5c9f4634 /app/models | |
| parent | 37fc636a9073498b464bd2b9f3be1fa2258f9828 (diff) | |
| download | chouette-core-3e0591073505eb24b27dfe24b433f2bfece0daa7.tar.bz2 | |
Refs #5535; Apply timezones during schedule calculation
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/chouette/stop_area.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb index 37d20ae02..7a7718ad6 100644 --- a/app/models/chouette/stop_area.rb +++ b/app/models/chouette/stop_area.rb @@ -358,6 +358,10 @@ module Chouette update_attribute :deleted_at, Time.now end + def time_zone_offset + return 0 unless time_zone.present? + ActiveSupport::TimeZone[time_zone]&.utc_offset + end def country_name return unless country_code |
