Skip to content

Commit

Permalink
Fix file-write-date
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Sep 4, 2024
1 parent 835962f commit 0941597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/unixfsys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ CL_DEFUN Number_sp cl__file_write_date(T_sp pathspec) {
String_sp filename = coerce_to_posix_filename(pathname);
struct stat filestatus;
if (safe_stat((char*)filename->get_path_string().c_str(), &filestatus) >= 0)
return make_number(filestatus.st_mtime) * make_number(2208988800);
return make_number(filestatus.st_mtime) + make_number(2208988800);
return nil<Number_O>();
}

Expand Down

0 comments on commit 0941597

Please sign in to comment.