A
Axel Friedrich
Hello,
in some cases, utime does not set the mtime correctly. AFAIK, this
bug is known for quite a while. - Anybody knows, if it will be fixed
in the near future or if there is a patch or any other help?
I could not find help in the archive of this newsgroup, even this:
http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/24
9839f5de0c6278/f30f387c97157f50
seems not to help in my case. I also could not find it in the
bugtracker,
http://rubyforge.org/tracker/?group_id=426 .
Ruby-Version: ruby 1.8.2 (2004-12-25) [i386-mswin32]
on Windows 98SE
Code I use to identify the bug:
# create a file
fileName = "c:/test.txt"
puts( fileName )
File.open( fileName, "w" ) {|file| file.write( "test bla bla") }
puts "\n--- The following time is daylight saving time ---"
mtime1 = Time.at(1089870492)
puts mtime1
File.utime( Time.now, mtime1, fileName )
mtime2 = File.mtime( fileName )
puts mtime2
puts "\n--- The following time is _not_ daylight saving time ---"
mtime1 = Time.at( 1135539956 )
puts mtime1
File.utime( Time.now, mtime1, fileName )
mtime2 = File.mtime( fileName )
puts mtime2
Returns:
c:/test.txt
--- The following time is daylight saving time ---
Thu Jul 15 07:48:12 (MEZ) - Mitteleurop. Sommerzeit 2004
Thu Jul 15 06:48:12 (MEZ) - Mitteleurop. Sommerzeit 2004 <- Not OK!
--- The following time is _not_ daylight saving time ---
Sun Dec 25 20:45:56 (MEZ) Mitteleuropäische Zeit 2005
Sun Dec 25 20:45:56 (MEZ) Mitteleuropäische Zeit 2005
I would like to know, if it will be fixed in the near future or if
there is a patch or any other help?
Axel
in some cases, utime does not set the mtime correctly. AFAIK, this
bug is known for quite a while. - Anybody knows, if it will be fixed
in the near future or if there is a patch or any other help?
I could not find help in the archive of this newsgroup, even this:
http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/24
9839f5de0c6278/f30f387c97157f50
seems not to help in my case. I also could not find it in the
bugtracker,
http://rubyforge.org/tracker/?group_id=426 .
Ruby-Version: ruby 1.8.2 (2004-12-25) [i386-mswin32]
on Windows 98SE
Code I use to identify the bug:
# create a file
fileName = "c:/test.txt"
puts( fileName )
File.open( fileName, "w" ) {|file| file.write( "test bla bla") }
puts "\n--- The following time is daylight saving time ---"
mtime1 = Time.at(1089870492)
puts mtime1
File.utime( Time.now, mtime1, fileName )
mtime2 = File.mtime( fileName )
puts mtime2
puts "\n--- The following time is _not_ daylight saving time ---"
mtime1 = Time.at( 1135539956 )
puts mtime1
File.utime( Time.now, mtime1, fileName )
mtime2 = File.mtime( fileName )
puts mtime2
Returns:
c:/test.txt
--- The following time is daylight saving time ---
Thu Jul 15 07:48:12 (MEZ) - Mitteleurop. Sommerzeit 2004
Thu Jul 15 06:48:12 (MEZ) - Mitteleurop. Sommerzeit 2004 <- Not OK!
--- The following time is _not_ daylight saving time ---
Sun Dec 25 20:45:56 (MEZ) Mitteleuropäische Zeit 2005
Sun Dec 25 20:45:56 (MEZ) Mitteleuropäische Zeit 2005
I would like to know, if it will be fixed in the near future or if
there is a patch or any other help?
Axel