Skip to content

Commit

Permalink
updates to use new File.info API for Crystal v0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samueleaton committed Jun 21, 2018
1 parent 648dacf commit 7c5f7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry.cr
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ module Sentry
end

private def get_timestamp(file : String)
File.stat(file).mtime.to_s("%Y%m%d%H%M%S")
File.info(file).modification_time.epoch.to_s
end

# Compiles and starts the application
Expand Down

0 comments on commit 7c5f7cc

Please sign in to comment.