# File lib/puppet/provider/cron/crontab.rb, line 182
182:     def self.to_file(records)
183:         text = super
184:         # Apparently Freebsd will "helpfully" add a new TZ line to every
185:         # single cron line, but not in all cases (e.g., it doesn't do it
186:         # on my machine).  This is my attempt to fix it so the TZ lines don't
187:         # multiply.
188:         if text =~ /(^TZ=.+\n)/
189:             tz = $1
190:             text.sub!(tz, '')
191:             text = tz + text
192:         end
193:         return text
194:     end