]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Fix time() on 1.8.7
authorHunter Haugen <hunter@puppetlabs.com>
Thu, 4 Jun 2015 16:40:52 +0000 (09:40 -0700)
committerHunter Haugen <hunter@puppetlabs.com>
Thu, 4 Jun 2015 16:40:52 +0000 (09:40 -0700)
commitad4ca4cc3486b0eaaa813595907521ce35c970ce
tree9a1a69b4bcd18b0ac74eeb017ea47b7cbd942b7e
parentf5f72f4b5a34e7a6c099f8fabdc55f79000b9a8b
Fix time() on 1.8.7

The time() function takes an argument of a timezone, and always returns
time in epoch format. The epoch format is the number of seconds that
have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap
seconds. This means that it is universally the same regardless of
timezones.

I don't know what the timezone argument is supposed to do, and it is not
documented. So lets just make 1.8.7 work like > 1.8.7
lib/puppet/parser/functions/time.rb
spec/functions/time_spec.rb