fix for non-rails envs
replaced call to Time#httpdate with Time#strftime