From 05d89b082cbc947c5b7599dc06efb18f1e9f58c9 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 10 Jan 2010 08:26:39 -0800 Subject: [PATCH] Cache buster timestamps not working in some cases. Closes GH-75. --- lib/compass/sass_extensions/functions/urls.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/sass_extensions/functions/urls.rb b/lib/compass/sass_extensions/functions/urls.rb index 4b15c56b..00ec2c16 100644 --- a/lib/compass/sass_extensions/functions/urls.rb +++ b/lib/compass/sass_extensions/functions/urls.rb @@ -116,7 +116,7 @@ module Compass::SassExtensions::Functions::Urls def default_cache_buster(path, real_path) if File.readable?(real_path) - File.mtime(real_path).strftime("%s") + File.mtime(real_path).to_i.to_s else $stderr.puts "WARNING: '#{File.basename(path)}' was not found (or cannot be read) in #{File.dirname(real_path)}" end