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