diff options
-rw-r--r-- | Cargo.toml | 6 | ||||
-rw-r--r-- | src/components.rs | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ [package] authors = ["Hendrik Sollich <hendrik@hoodie.de>"] name = "icalendar" -version = "0.3.0" +version = "0.3.1" license = "MIT/Apache-2.0" description = "Early, minimal icalendar crate." @@ -18,10 +18,10 @@ include = [ [dependencies] -chrono = "0.3" +chrono = "0.4" #error-chain = "*" #vobject = {path="../hub/vobject"} [dependencies.uuid] features = ["v4"] -version = "0.4" +version = "0.5" diff --git a/src/components.rs b/src/components.rs index 0b3ac15..a37a9b9 100644 --- a/src/components.rs +++ b/src/components.rs @@ -127,7 +127,7 @@ pub trait Component { fn fmt_write<W: fmt::Write>(&self, out: &mut W) -> Result<(), fmt::Error> { write_crlf!(out, "BEGIN:{}", Self::component_kind())?; - let now = UTC::now().format("%Y%m%dT%H%M%S"); + let now = Local::now().format("%Y%m%dT%H%M%S"); write_crlf!(out, "DTSTAMP:{}", now)?; write_crlf!(out, "UID:{}", Uuid::new_v4())?; |