Skip to content

Commit

Permalink
Use local mtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanluoyc committed May 7, 2024
1 parent 4a62ba4 commit d3202f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxm3/xm_cluster/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def should_update(self, lpath: str, rpath: str) -> Tuple[bool, str]:
local_stat = os.stat(lpath)
local_size = local_stat.st_size
local_mtime = datetime.datetime.fromtimestamp(
local_stat.st_atime, tz=datetime.timezone.utc
local_stat.st_mtime, tz=datetime.timezone.utc
)
remote_file_info = self.get_file_info(rpath)

Expand Down

0 comments on commit d3202f1

Please sign in to comment.