From: Shad Sterling Date: 2005-05-15T08:46:38+09:00 Subject: Re: File.utime, Windows and Ruby 1.8 On 5/9/05, mike wrote: > The behavior of Fime.utime on Ruby 1.8 on Windows looks wrong: ... > The file's mtime is 1 hour later. Using Time.gm doesn't fix the > problem. ... > I don't know if it's related, but I'm using a FAT32 filesystem. > > > mike > > I see the same thing, using CIFS to a samba server. I just changed File.utime in my quirks.rb: class File if RUBY_PLATFORM.split("-")[1] == "mswin32" then #puts "fixing win32 File.utime bug" class << self alias_method :broken_utime, :utime def File.utime( atime, mtime, filename ) File.broken_utime( atime, mtime-3600, filename ) end end end end -- ---------- Please do not send personal (non-list-related) mail to this address. Personal mail should be sent to polyergic@sterfish.com.