# Used to cache-bust locally def manifest_time t = Time.now year = t.year month = t.month day = t.day hour = t.hour min = t.min # Seconds changes too frequently for # manifest, so HH:MM:00 or HH:MM:30. sec = t.sec > 30 ? 0 : 30 # Outputs this format... 2013-03-27 12:11:00 UTC return Time.utc(year, month, day, hour, min, sec) end