mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 05:54:21 +01:00
fix clock implementation for OPFS IO
This commit is contained in:
@@ -140,7 +140,11 @@ impl Opfs {
|
||||
|
||||
impl Clock for Opfs {
|
||||
fn now(&self) -> Instant {
|
||||
Instant { secs: 0, micros: 0 } // TODO
|
||||
let now = chrono::Local::now();
|
||||
Instant {
|
||||
secs: now.timestamp(),
|
||||
micros: now.timestamp_subsec_micros(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user