title: File modification date in Java
body: <p>I set the modification date of a file created in Java to a specific number. When I read out that value on Windows, I get the same value out. However, on Linux (ubuntu) I get a different value. The value for File.lastModified() is off by 9 hours, yet when I look a the file properties I see that it's off by 1 hour only. I am expecting the same value across the board.</p>
  
  <p>Am I wrong to depend on this being compatible and consistent? The <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#setLastModified(long)" rel="nofollow noreferrer">javadoc</a> is pretty unambiguous on the meaning of the method and does not mention potential incompatibilities.</p>