Permalink
Browse files

Use System.os_time as reference in `Mix.Utils.last_modified_and_size/…

…1` (#8502)
  • Loading branch information...
schnittchen authored and josevalim committed Dec 11, 2018
1 parent 4f4aad2 commit a1fb6c0d0e801debd2ec88602abc493ef7937907
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mix/lib/mix/utils.ex
@@ -176,7 +176,7 @@ defmodule Mix.Utils do
(1970-01-01 00:00:00).
"""
def last_modified_and_size(path) do
now = System.system_time(:second)
now = System.os_time(:second)

case :elixir_utils.read_posix_mtime_and_size(path) do
{:ok, mtime, size} when mtime > now ->

0 comments on commit a1fb6c0

Please sign in to comment.