diff --git a/changelog.md b/changelog.md
index 4e0a120c..ba02f96a 100644
--- a/changelog.md
+++ b/changelog.md
@@ -4,6 +4,7 @@
* Remove support for deprecated, unsecure protocols V1, V2, V4 and V5
* Sanitize file ID before downloading a file, to prevent the temporary file from being allowed to traverse parent dirs
* Implement automatic transfer cancellation when all files reach the terminal state
+* Fix incorrect timestamp conversions in `purge_transfers_until()` and `transfers_since()`
---
diff --git a/norddrop/src/uni.rs b/norddrop/src/uni.rs
index 0b6e75be..a7191bc3 100644
--- a/norddrop/src/uni.rs
+++ b/norddrop/src/uni.rs
@@ -97,7 +97,7 @@ impl NordDrop {
self.dev
.lock()
.expect("Poisoned lock")
- .purge_transfers_until(until / 100)
+ .purge_transfers_until(until / 1000)
}
pub fn transfers_since(&self, since: i64) -> Result> {
@@ -107,7 +107,7 @@ impl NordDrop {
.dev
.lock()
.expect("Poisoned lock")
- .transfers_since(since / 100)?;
+ .transfers_since(since / 1000)?;
let xfers = infos.into_iter().map(TransferInfo::from).collect();
Ok(xfers)