lib/flapjack/data/contact.rb in flapjack-0.7.2 vs lib/flapjack/data/contact.rb in flapjack-0.7.3
- old
+ new
@@ -278,9 +278,10 @@
def media_list
@redis.hkeys("contact_media:#{self.id}")
end
# return the timezone of the contact, or the system default if none is set
+ # TODO cache?
def timezone(opts = {})
logger = opts[:logger]
tz_string = @redis.get("contact_tz:#{self.id}")
tz = opts[:default] if (tz_string.nil? || tz_string.empty?)