summaryrefslogtreecommitdiff
path: root/src/datetime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/datetime.rs')
-rw-r--r--src/datetime.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datetime.rs b/src/datetime.rs
index 46b1643..69b25ca 100644
--- a/src/datetime.rs
+++ b/src/datetime.rs
@@ -12,6 +12,7 @@ pub type DTime = DateTime<Tz>;
pub fn from_ordinal(ordinal: isize, tz: &Tz) -> DTime {
let timestamp = ordinal * 24 * 60 * 60;
+ let s = tz.timestamp(timestamp as i64, 0);
tz.timestamp(timestamp as i64, 0)
}