about summary refs log tree commit diff
path: root/src/exe.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/exe.zig')
-rw-r--r--src/exe.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exe.zig b/src/exe.zig
index c1f084b..6aa260d 100644
--- a/src/exe.zig
+++ b/src/exe.zig
@@ -75,7 +75,7 @@ fn pandocWorker(ctx: *Context, page: []const u8) !void {
     defer ctx.allocator().free(target_path);
 
     // get mtime of the source document
-    const mtime = try (fs.getGitTime(source_path) catch fs.getMtime(source_path));
+    const mtime = try fs.getLastEdit(source_path);
     const mtime_str = try fs.formatTimespec(ctx.allocator(), mtime, "%s");
     defer ctx.allocator().free(mtime_str);