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.
Am I wrong to depend on this being compatible and consistent? The javadoc is pretty unambiguous on the meaning of the method and does not mention potential incompatibilities.