Skip to content

Commit

Permalink
Merge pull request #428 from hirose31/file-mtime-localtime
Browse files Browse the repository at this point in the history
Return mtime as localtime
  • Loading branch information
mizzy committed Jun 11, 2014
2 parents 528637c + 0e338c1 commit 9d337b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serverspec/type/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def version?(version)

def mtime
d = backend.get_file_mtime(@name).stdout.strip
DateTime.strptime(d, '%s')
DateTime.strptime(d, '%s').new_offset(DateTime.now.offset)
end
end
end
Expand Down

0 comments on commit 9d337b2

Please sign in to comment.