Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Shortcut to convert timezone to TZInfo::Timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
elecnix committed May 5, 2010
1 parent 523edf5 commit 59a9cf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/timezone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class Timezone
attr :dst_offset

attr_writer :timezone_id, :gmt_offset, :dst_offset

def tzinfo
TZInfo::Timezone.get(timezone_id)
end
end
end

Expand Down

0 comments on commit 59a9cf5

Please sign in to comment.