summaryrefslogtreecommitdiff
path: root/src/poslist.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-15 01:02:53 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-15 01:02:53 +0200
commit3bd8555cbed070b5f09fed26a219ce7f40c342e3 (patch)
tree1b3eaa9fe2bef971b9ad43ee7fa87f55185d1d01 /src/poslist.rs
parent845aef4a98bd142fd3b89288e0d8e0288140e8db (diff)
downloadrust_rrule-3bd8555cbed070b5f09fed26a219ce7f40c342e3.zip
it actually works!!!
Diffstat (limited to 'src/poslist.rs')
-rw-r--r--src/poslist.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poslist.rs b/src/poslist.rs
index e962e0c..af0da7f 100644
--- a/src/poslist.rs
+++ b/src/poslist.rs
@@ -5,7 +5,7 @@ use chrono::prelude::*;
use chrono::*;
pub fn from_ordinal(ordinal: isize) -> DateTime<Utc> {
- let timestamp = ordinal * 24 * 60 * 60 * 1000;
+ let timestamp = ordinal * 24 * 60 * 60;
let naive = NaiveDateTime::from_timestamp(timestamp as i64, 0);
DateTime::from_utc(naive, Utc)
}