diff options
author | Hendrik Sollich <hendrik@hoodie.de> | 2017-07-02 22:02:11 +0200 |
---|---|---|
committer | Hendrik Sollich <hendrik@hoodie.de> | 2017-07-02 22:02:11 +0200 |
commit | 04fccdf3806ff7b31243420f1d0e271cb7ea63df (patch) | |
tree | b32f9e58daee37fc131901d95d715f26b7cba01c | |
parent | 4d4ff4327eb753a0986adbb157ebb621e04976cc (diff) |
updated dependencies
-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())?; |