# File ../../auditor/lib/kasp_auditor.rb, line 262 def configure_timeshift(syslog) # Frig Time.now to ENV['ENFORCER_TIMESHIFT'] if (@enable_timeshift) timeshift = ENV['ENFORCER_TIMESHIFT'] # If environment variable not present, then ignore if (timeshift) # Change the time year = timeshift[0,4] mon = timeshift[4,2] day = timeshift[6,2] hour = timeshift[8,2] min = timeshift[10,2] sec = timeshift[12,2] syslog.log(LOG_INFO, "Timeshifting to #{timeshift}\n") print "Timeshifting to #{timeshift}\n" @@timeshift = Time.mktime(year, mon, day, hour, min, sec).to_i require 'time_shift.rb' end end end