From 6fa125473b7d9e6931353a48c67a106f9becac9a Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Mon, 26 Oct 2020 21:48:33 +0100 Subject: docs and examples --- src/datetime.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/datetime.rs') 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; 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) } -- cgit v1.2.3