summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Sollich <hendrik@hoodie.de>2017-07-02 22:02:11 +0200
committerHendrik Sollich <hendrik@hoodie.de>2017-07-02 22:02:11 +0200
commit04fccdf3806ff7b31243420f1d0e271cb7ea63df (patch)
treeb32f9e58daee37fc131901d95d715f26b7cba01c
parent4d4ff4327eb753a0986adbb157ebb621e04976cc (diff)
updated dependencies
-rw-r--r--Cargo.toml6
-rw-r--r--src/components.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index df97c3d..b35fa20 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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())?;