puppetlabs/puppet — pull request #1330 by zaphod42 (2012-12-12 19:34:23+00:00)
Title: (#15496) Correctly determine timezone offset

A user reported the incorrect offset in reports for hosts in the timezone
"America/Caracas", which is -04:30 from GMT. The zaml time interpolation
did not handle negative fractional timezones correctly, because Ruby
rounds down when integer division results in a remainder, which caused
"-4.5" to result in "-5".

This patch coerces the denominator into a float, so the printf
formatting's truncation works correctly.

This pull request closes PR #1323