summaryrefslogtreecommitdiffstats
path: root/lib/facter/timezone.rb
blob: 462c9ba67c1c5eb42dee518e2be4fa468da096cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Fact: timezone
#
# Purpose: Return the machine's time zone.
#
# Resolution: Uses's Ruby's Time module's Time.new call.
#
# Caveats:
#

Facter.add("timezone") do
     setcode do
         Time.new.zone
     end
end