Permalink
Browse files

make FileTest independent of timezone

  • Loading branch information...
1 parent 5898890 commit 1e2203656088eb29bf9c1b934d9b6df632f9d19f @timfel timfel committed Aug 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/test/FileTest.rb
@@ -44,7 +44,7 @@
# First create a file with known properties
fname = '/tmp/FileStatTest-234'
-time = Time.at 940448040 # Wed Oct 20 12:34:00 -0700 1999
+time = Time.local(1999, 10, 20, 12, 34)
%x{ touch -t 199910201234 #{fname} } # create at Wed Oct 20 12:34:00 1999
# Test File class methods

0 comments on commit 1e22036

Please sign in to comment.