Skip to content

Lightpanda: the headless browser designed for AI and automation

`FormData`: `std.Io.Clock.now` -> `lp.datetime.milliTimestamp`

Halil Durakdff92a6fb525
diff --git a/src/browser/webapi/net/FormData.zig b/src/browser/webapi/net/FormData.zig
index 590770008..947086bc0 100644
--- a/src/browser/webapi/net/FormData.zig
+++ b/src/browser/webapi/net/FormData.zig
@@ -617,7 +617,7 @@ fn parseMultipart(self: *FormData, page: *Page, bytes: []const u8, boundary: []c
file.* = .{
._proto = blob,
._name = try blob._arena.dupe(u8, try decodeMultipartName(self._arena, filename)),
- ._last_modified = std.Io.Clock.now(.real, lp.io).toMilliseconds(),
+ ._last_modified = @intCast(lp.datetime.milliTimestamp(.real)),
};
blob._type = .{ .file = file };